Update main.go

This commit is contained in:
2019-04-15 11:37:08 +03:00
parent 7142190b29
commit 40a7b7c92f
2 changed files with 6 additions and 5 deletions

2
go.mod
View File

@@ -1 +1,3 @@
module goudpserver
go 1.12

View File

@@ -1,6 +1,6 @@
// go build -ldflags "-s -w"
// goudpserver -ip=0.0.0.0 -port=10003
// ncat -u localhost 10003
// Build: go build -ldflags "-s -w"
// Run: goudpserver -ip=0.0.0.0 -port=10003
// Test: ncat -u localhost 10003
package main
@@ -33,7 +33,6 @@ func main() {
addr := net.UDPAddr{
Port: *argPort,
// IP: net.IP{0, 0, 0, 0},
IP: net.ParseIP(*argIP),
}
connection, err := net.ListenUDP("udp", &addr)