We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca98e50 + d21042e commit f5ba400Copy full SHA for f5ba400
docker-compose.yml
@@ -10,5 +10,5 @@ services:
10
#- /var/lib/golang-dhcpd:/var/lib/golang-dhcpd
11
network_mode: "host"
12
ports:
13
- - '67:67/upd'
+ - '67:67/udp'
14
hostname: golang-dhcpd
main.go
@@ -44,6 +44,7 @@ func main() {
44
if err != nil {
45
log.Fatalf("Failed listening: %v", err)
46
}
47
+ defer ln.Close()
48
49
// Boilerplate to get additional OOB data with each incoming packet, which
50
// includes the ID of the incoming interface
0 commit comments