parent
c755a05b61
commit
dcb9882978
@ -68,7 +68,7 @@ func getIPInfo(addr string) results.IPInfoResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func SetServerLocation(conf *config.Config) {
|
func SetServerLocation(conf *config.Config) {
|
||||||
if conf.ServerLat > 0 && conf.ServerLng > 0 {
|
if conf.ServerLat != 0 || conf.ServerLng != 0 {
|
||||||
log.Infof("Configured server coordinates: %.6f, %.6f", conf.ServerLat, conf.ServerLng)
|
log.Infof("Configured server coordinates: %.6f, %.6f", conf.ServerLat, conf.ServerLng)
|
||||||
serverCoord.Lat = conf.ServerLat
|
serverCoord.Lat = conf.ServerLat
|
||||||
serverCoord.Lon = conf.ServerLng
|
serverCoord.Lon = conf.ServerLng
|
||||||
|
Loading…
Reference in New Issue
Block a user