Skip to content

Commit d21042e

Browse files
committed
Fix typo and missing socket Close()
1 parent 9a0ca6c commit d21042e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ services:
1010
#- /var/lib/golang-dhcpd:/var/lib/golang-dhcpd
1111
network_mode: "host"
1212
ports:
13-
- '67:67/upd'
13+
- '67:67/udp'
1414
hostname: golang-dhcpd

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func main() {
4444
if err != nil {
4545
log.Fatalf("Failed listening: %v", err)
4646
}
47+
defer ln.Close()
4748

4849
// Boilerplate to get additional OOB data with each incoming packet, which
4950
// includes the ID of the incoming interface

0 commit comments

Comments
 (0)