mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-06 16:18:00 +08:00
🐞 can't have break
when not in a loop
This commit is contained in:
@@ -23,11 +23,11 @@ func main() {
|
||||
|
||||
go func() {
|
||||
response, err := xip.QueryResponse(query)
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
log.Println(err.Error())
|
||||
break
|
||||
}
|
||||
} else {
|
||||
_, err = conn.WriteToUDP(response, addr)
|
||||
}
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user