Fix IP address in SEMP messages

This commit is contained in:
andig 2020-11-23 08:41:02 +01:00
parent 8b877822ff
commit 83430b71f5

View file

@ -144,7 +144,7 @@ func (s *SEMP) callbackURI() string {
ip := "localhost"
ips := util.LocalIPs()
if len(ips) > 0 {
ip = ips[0].String()
ip = ips[0].IP.String()
} else {
s.log.ERROR.Printf("couldn't determine ip address- specify %s to override", sempBaseURLEnv)
}