update go mod
This commit is contained in:
1 parent
804d7ec9fe
commit
557164c812
5 files changed
+168
-48
No files matched your search
+3
-3
@@ -4,8 +4,8 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/esrrhs/gohome/common"
|
||||
"github.com/esrrhs/gohome/geoip"
|
||||
"github.com/esrrhs/gohome/loggo"
|
||||
"github.com/esrrhs/gohome/thirdparty"
|
||||
"github.com/esrrhs/pingtunnel"
|
||||
"net"
|
||||
"net/http"
|
||||
@@ -215,7 +215,7 @@ func main() {
|
||||
}
|
||||
|
||||
if len(*s5filter) > 0 {
|
||||
err := geoip.Load(*s5ftfile)
|
||||
err := thirdparty.LoadGeoip2(*s5ftfile)
|
||||
if err != nil {
|
||||
loggo.Error("Load Sock5 ip file ERROR: %s", err.Error())
|
||||
return
|
||||
@@ -231,7 +231,7 @@ func main() {
|
||||
return false
|
||||
}
|
||||
|
||||
ret, err := geoip.GetCountryIsoCode(taddr.IP.String())
|
||||
ret, err := thirdparty.GetGeoipCountryIsoCode(taddr.IP.String())
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user