From 2cd2a2006517b483466ab1c0a7e113521fc5eb1b Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 22 Jun 2023 20:20:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=88=EC=93=B0=EB=8A=94=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/maingate.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/core/maingate.go b/core/maingate.go index 0c565a8..34283b1 100644 --- a/core/maingate.go +++ b/core/maingate.go @@ -430,23 +430,6 @@ func whitelistKey(email string) string { return email } -func isPrivateIP(ip net.IP) bool { - if ip[0] == 10 { - return true - } - - if ip[0] == 172 { - if ip[1] >= 16 && ip[1] < 32 { - return true - } - return false - } - - if ip[0] == 192 && ip[1] == 168 { - return true - } - return false -} func (mg *Maingate) RegisterHandlers(ctx context.Context, serveMux *http.ServeMux, prefix string) error { var allServices []*serviceDescription