Compare commits

..

2 Commits

Author SHA1 Message Date
7bee78a875 live용 설정 추가 2023-06-22 20:20:50 +09:00
2cd2a20065 안쓰는 함수 제거 2023-06-22 20:20:36 +09:00

View File

@ -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