rename -dhcp flag to -no-dhcp for cleaner UX

DHCP is on by default; use -no-dhcp to disable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Git Sagar 2026-06-06 17:53:01 +05:30
parent 8a3ea06c9e
commit 42f8333783
3 changed files with 7 additions and 7 deletions

View file

@ -22,7 +22,7 @@ softether-go [flags]
| `-mac` | *(auto)* | TAP interface MAC address (e.g. `5E:3B:6F:63:A8:3E`) |
| `-plain-password` | `false` | Send password as plaintext (AuthType 2, for RADIUS/external auth) |
| `-insecure` | `false` | Skip TLS certificate verification |
| `-dhcp` | `true` | Run built-in DHCP client after connecting |
| `-no-dhcp` | `false` | Disable built-in DHCP client |
| `-accept-default-gateway` | `false` | Install DHCP-provided gateway as default route |
| `-accept-static-routes` | `false` | Install DHCP classless static routes (option 121/249) |
| `-accept-dns` | `false` | Set `/etc/resolv.conf` from DHCP-provided DNS servers |
@ -57,9 +57,9 @@ Sets a specific MAC address on the TAP interface before connecting. Useful for d
softether-go -host vpn.example.com -user admin -mac 5E:3B:6F:63:A8:3E
```
### `-dhcp`
### `-no-dhcp`
Enabled by default. Runs the built-in DHCP client through the VPN tunnel after connecting. Disable with `-dhcp=false` if the TAP interface will be configured manually or by an external DHCP client.
Disables the built-in DHCP client. Use this if the TAP interface will be configured manually or by an external DHCP client.
### `-accept-default-gateway`
@ -117,7 +117,7 @@ softether-go \
No DHCP (manual configuration):
```bash
softether-go -host vpn.example.com -user admin -pass secret -dhcp=false -tap vpn0
softether-go -host vpn.example.com -user admin -pass secret -no-dhcp -tap vpn0
```
## Docker