make networks required for peer
This commit is contained in:
parent
4bb17e043f
commit
d81bd72a5f
1
add.go
1
add.go
@ -29,6 +29,7 @@ func Add() {
|
||||
PrivateKey: privateKey, // omitted from server config JSON!
|
||||
PresharedKey: GenerateJSONKey(),
|
||||
IP: IP,
|
||||
Networks: []JSONIPNet{},
|
||||
}
|
||||
|
||||
conf.MustAddPeer(peer)
|
||||
|
@ -25,7 +25,7 @@ type PeerConfig struct {
|
||||
// TODO ExternalIP support (Endpoint)
|
||||
//ExternalIP net.UDPAddr `validate:"required,udp4_addr"`
|
||||
// TODO support routing additional networks (AllowedIPs)
|
||||
Networks []JSONIPNet
|
||||
Networks []JSONIPNet `validate:"required"`
|
||||
}
|
||||
|
||||
type DsnetConfig struct {
|
||||
|
Loading…
Reference in New Issue
Block a user