250 |
Endpoint = $ExternalIP:$Port |
Endpoint = $ExternalIP:$Port |
251 |
"; |
"; |
252 |
# we could add a DNS field in [Interface] |
# we could add a DNS field in [Interface] |
253 |
|
diff -Nur --no-dereference smeserver-wireguard-1.0.old/root/etc/e-smith/db/configuration/migrate/wireguard smeserver-wireguard-1.0/root/etc/e-smith/db/configuration/migrate/wireguard |
254 |
|
--- smeserver-wireguard-1.0.old/root/etc/e-smith/db/configuration/migrate/wireguard 2021-11-01 21:46:45.647000000 -0400 |
255 |
|
+++ smeserver-wireguard-1.0/root/etc/e-smith/db/configuration/migrate/wireguard 2021-11-01 21:50:17.661000000 -0400 |
256 |
|
@@ -1,4 +1,6 @@ |
257 |
|
{ |
258 |
|
+my $wireguard = $DB->get('wg-quick@wg0') || $DB->new_record('wg-quick@wg0', {type => 'service'}); |
259 |
|
+ |
260 |
|
# add private and public key if not present |
261 |
|
unless (defined ${'wg-quick@wg0'}{'private'}) { |
262 |
|
$value= `/usr/bin/wg genkey`; |