diff --git a/config/provisioning.php b/config/provisioning.php index ee321f7..2fd11e5 100644 --- a/config/provisioning.php +++ b/config/provisioning.php @@ -1,9 +1,11 @@ [ 'subnet' => $wgSubnet, - 'hub_ip' => env('CLUPILOT_WG_HUB_IP', Str::beforeLast($wgSubnet, '.').'.1'), // handshake target + 'hub_ip' => env('CLUPILOT_WG_HUB_IP', $wgHubDefault), // handshake target 'endpoint' => env('CLUPILOT_WG_ENDPOINT', ''), // host:port reachable by peers 'hub_public_key' => env('CLUPILOT_WG_HUB_PUBKEY', ''), 'config_path' => env('CLUPILOT_WG_CONFIG_PATH', '/etc/wireguard/wg0.conf'),