From f4582299aae9a54520f735d8c3625a1828427468 Mon Sep 17 00:00:00 2001 From: rehjinh Date: Thu, 15 Jun 2023 14:12:26 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=B8=EC=85=98=EC=9D=98=20BrowserInfo=20?= =?UTF-8?q?=EA=B8=B0=EB=A1=9D=ED=95=98=EB=8A=94=20=EB=B6=80=EB=B6=84?= =?UTF-8?q?=EC=97=90=EC=84=9C=20RemoteAddr=EC=B2=B4=ED=81=AC=EB=8A=94=20?= =?UTF-8?q?=EB=A1=9C=EB=93=9C=EB=B0=B8=EB=9F=B0=EC=84=9C=20IP=20=EC=B0=8D?= =?UTF-8?q?=ED=9E=88=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EB=95=8C=EB=AC=B8?= =?UTF-8?q?=EC=97=90=20=EC=A0=9C=EC=99=B8=ED=95=9C=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/maingate.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/maingate.go b/core/maingate.go index f655531..e3dbbd5 100644 --- a/core/maingate.go +++ b/core/maingate.go @@ -11,7 +11,6 @@ import ( "io" "math/big" "math/rand" - "net" "net/http" "os" "strings" @@ -693,17 +692,18 @@ func (mg *Maingate) GeneratePlatformLoginNonceKey() string { func (mg *Maingate) GetUserBrowserInfo(r *http.Request) (string, error) { //=========== 브라우저 검증쪽은 앞으로 빼자 - host, _, err := net.SplitHostPort(r.RemoteAddr) - if err != nil { - logger.Error("Error: RemoteAddr Split Error :", err) - } + // host, _, err := net.SplitHostPort(r.RemoteAddr) + // if err != nil { + // logger.Error("Error: RemoteAddr Split Error :", err) + // } cookie, err := r.Cookie("ActionSquareSessionExtraInfo") if err != nil { return "", err } - requestinfo := fmt.Sprintf("%s_%s", cookie.Value, host) + //requestinfo := fmt.Sprintf("%s_%s", cookie.Value, host) //-- RemoteAddr체크는 로드밸런서 IP 찍히는 문제 때문에 제외한다. + requestinfo := fmt.Sprintf("%s_", cookie.Value) return requestinfo, nil }