Skip to content

Commit

Permalink
Fix UPNP broadcast prior to ip determination.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustinmj committed Sep 21, 2017
1 parent 820408c commit a6e04a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/upnp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit a6e04a9

Please sign in to comment.