From a6e04a9f8fe24a9354dffa35eb2ad0ef59ddc48b Mon Sep 17 00:00:00 2001 From: Dustin Jorge Date: Thu, 21 Sep 2017 13:46:07 -0700 Subject: [PATCH] Fix UPNP broadcast prior to ip determination. --- server/upnp.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/upnp.go b/server/upnp.go index 63e7872..91881d8 100644 --- a/server/upnp.go +++ b/server/upnp.go @@ -31,7 +31,7 @@ const ( var upnpuuid string // fn - the device 'friendly name' -var upnpfn = coms.AppName + ": " + getOutboundIP().String() +var upnpfn = coms.AppName // signal channel, close cast loop var sig = make(chan int) @@ -47,6 +47,8 @@ func init() { //StartUPNP - Start the UPNP server func StartUPNP(ttsPort string, ip string) { + // reset friendly id with new ip + upnpfn = coms.AppName + ": " + ip go func() { defer func() { sig <- 1