Skip to content

Commit 945b404

Browse files
committed
feat: update
1 parent 93dba1b commit 945b404

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ func main() {
4747
handleDnsRequest(w, m, qdns)
4848
})
4949
// start server
50+
address := os.Getenv("ADDRESS")
51+
if address == "" {
52+
address = "0.0.0.0"
53+
log.Printf("Defaulting to address %s", address)
54+
}
5055
port := os.Getenv("PORT")
5156
if port == "" {
5257
port = "53"

0 commit comments

Comments
 (0)