Handle peer defaults

This commit is contained in:
billz
2021-02-24 09:12:31 +00:00
parent 1431d44b52
commit 796ed558f7
5 changed files with 20 additions and 16 deletions

View File

@@ -35,10 +35,15 @@
}
},
"wireguard": {
"interface": {
"address": [ "10.3.141.1/24" ],
"listenport": [ "51820" ],
"dns": [ "10.3.141.1" ]
"server": {
"Address": [ "10.3.141.1/24" ],
"ListenPort": [ "51820" ],
"DNS": [ "10.3.141.1" ]
},
"peer": {
"Endpoint": [ "server ip:53" ],
"AllowedIPs": ["0.0.0.0/0"],
"PersistentKeepalive": [ "15" ]
}
}
}