File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ commit; save
5959
6060const nixosPeerConf = `networking.wireguard.interfaces = {{ "{" }}
6161 dsnet = {{ "{" }}
62- dynamicEndpointRefreshSeconds = 5; # restart on failure (e.g. DNS issue)
63- dynamicEndpointRefreshSeconds = 300; # refresh DNS periodically
6462 ips = [
6563 {{ if gt (.Server.Network.IPNet.IP | len) 0 -}}
6664 "{{ .Peer.IP }}/{{ .CidrSize }}"
@@ -87,6 +85,8 @@ const nixosPeerConf = `networking.wireguard.interfaces = {{ "{" }}
8785 ];
8886 endpoint = "{{ .Endpoint }}:{{ .Server.ListenPort }}";
8987 persistentKeepalive = {{ .Server.PersistentKeepalive }};
88+ dynamicEndpointRefreshRestartSeconds = 5; # restart on failure (e.g. DNS issue)
89+ dynamicEndpointRefreshSeconds = 300; # refresh DNS periodically
9090 {{ "}" }}
9191 ];
9292 {{ "};" }}
You can’t perform that action at this time.
0 commit comments