Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit fec351f

Browse files
author
Felix Pojtinger
committed
fix: Listen on all interfaces by default
1 parent 7061877 commit fec351f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Usage:
6666

6767
Flags:
6868
-f, --dhcpdd.configFile string Configuration file to use.
69-
-l, --dhcpdd.listenHostPort string TCP listen host:port. (default "localhost:1020")
69+
-l, --dhcpdd.listenHostPort string TCP listen host:port. (default ":1020")
7070
-h, --help help for dhcpdd
7171
```
7272

@@ -86,7 +86,7 @@ Usage:
8686

8787
Flags:
8888
-f, --dhclientd.configFile string Configuration file to use.
89-
-l, --dhclientd.listenHostPort string TCP listen host:port. (default "localhost:1030")
89+
-l, --dhclientd.listenHostPort string TCP listen host:port. (default ":1030")
9090
-h, --help help for dhclientd
9191
```
9292

cmd/constants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cmd
22

33
const (
4-
DHCPDDHostPortDefault = "localhost:1020" // DHCPDDHostPortDefault is the default Host:port of `dhcpdd`.
5-
DHClientDHostPortDefault = "localhost:1030" // DHClientDHostPortDefault is the default Host:port of `dhclient`.
4+
DHCPDDHostPortDefault = ":1020" // DHCPDDHostPortDefault is the default Host:port of `dhcpdd`.
5+
DHClientDHostPortDefault = ":1030" // DHClientDHostPortDefault is the default Host:port of `dhclient`.
66
HostPortDocs = "Host:port of the server to use." // HostPortDocs is the documentation for the host:port flag.
77
ConfigurationFileDocs = "Configuration file to use." // ConfigurationFileDocs is the documentation for the configuration file flag.)
88
)

examples/dhclientd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
dhclientd:
2-
listenHostPort: localhost:1030
2+
listenHostPort: :1030

examples/dhcpdd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
dhcpdd:
2-
listenHostPort: localhost:1020
2+
listenHostPort: :1020

0 commit comments

Comments
 (0)