Commit 675f2dec authored by szh's avatar szh

nil pointer

parent 17687dca
...@@ -45,7 +45,7 @@ func Broadcast() { ...@@ -45,7 +45,7 @@ func Broadcast() {
IP: net.IPv4(255, 255, 255, 255), IP: net.IPv4(255, 255, 255, 255),
Port: 8804, Port: 8804,
} }
if runningAddr.IP.String() != ip.IP.String() { if runningAddr != nil && runningAddr.IP.String() != ip.IP.String() {
laddr = net.UDPAddr{ laddr = net.UDPAddr{
IP: ip.IP, IP: ip.IP,
Port: 8804, Port: 8804,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment