修订代码

This commit is contained in:
e1732a364fed
2000-01-01 00:00:00 +00:00
parent 0da238c825
commit fe8868beb2
2 changed files with 4 additions and 3 deletions

View File

@@ -105,8 +105,9 @@ func printSupportedProtocols() {
//see https://dev.maxmind.com/geoip/geolite2-free-geolocation-data?lang=en
func tryDownloadMMDB() {
fp := utils.GetFilePath(netLayer.GeoipFileName)
if utils.FileExist(utils.GetFilePath(netLayer.GeoipFileName)) {
if utils.FileExist(fp) {
return
}

View File

@@ -262,8 +262,6 @@ func mainFunc() (result int) {
}
runPreCommands()
var defaultInServer proxy.Server
var Default_uuid string
@@ -364,6 +362,8 @@ func mainFunc() (result int) {
}
runPreCommands()
if (defaultOutClient != nil) && (defaultInServer != nil || len(allServers) > 0 || len(tproxyConfs) > 0) {
if mode == proxy.SimpleMode {