Merge pull request #2990 from ywk253100/170808_bug_fix

[BAT]Bug fix
This commit is contained in:
Wenkai Yin 2017-08-08 17:08:25 +08:00 committed by GitHub
commit 4b05c9eaf1

View File

@ -379,7 +379,7 @@ func AdmiralEndpoint() string {
return ""
}
if e, ok := cfg[common.AdmiralEndpoint].(string); !ok || e == "NA" {
cfg[common.AdmiralEndpoint] = ""
return ""
}
return cfg[common.AdmiralEndpoint].(string)
}