Skip to content

Commit f5ba400

Browse files
authored
Merge pull request #3 from pawciobiel/2-fix-typo-and-missing-close
2 parents ca98e50 + d21042e commit f5ba400

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docker-compose.yml

+1-1
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

+1
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)