no DNS by default
This commit is contained in:
parent
dd5ab03771
commit
3277362e6e
2
add.go
2
add.go
@ -60,7 +60,9 @@ func PrintPeerCfg(peer PeerConfig, conf *DsnetConfig) {
|
|||||||
const peerConf = `[Interface]
|
const peerConf = `[Interface]
|
||||||
Address = {{ .Peer.IP }}
|
Address = {{ .Peer.IP }}
|
||||||
PrivateKey={{ .Peer.PrivateKey.Key }}
|
PrivateKey={{ .Peer.PrivateKey.Key }}
|
||||||
|
{{- if .DsnetConfig.DNS }}
|
||||||
DNS = {{ .DsnetConfig.DNS }}
|
DNS = {{ .DsnetConfig.DNS }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey={{ .DsnetConfig.PrivateKey.PublicKey.Key }}
|
PublicKey={{ .DsnetConfig.PrivateKey.PublicKey.Key }}
|
||||||
|
@ -40,7 +40,7 @@ type DsnetConfig struct {
|
|||||||
// Network is chosen randomly when not specified
|
// Network is chosen randomly when not specified
|
||||||
Network JSONIPNet `validate:"required"`
|
Network JSONIPNet `validate:"required"`
|
||||||
IP net.IP `validate:"required"`
|
IP net.IP `validate:"required"`
|
||||||
DNS net.IP `validate:"required"`
|
DNS net.IP
|
||||||
// extra networks available, will be added to AllowedIPs
|
// extra networks available, will be added to AllowedIPs
|
||||||
Networks []JSONIPNet `validate:"required"`
|
Networks []JSONIPNet `validate:"required"`
|
||||||
// TODO Default subnets to route via VPN
|
// TODO Default subnets to route via VPN
|
||||||
|
Loading…
Reference in New Issue
Block a user