mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
Fix port discovery in install
This commit is contained in:
parent
59d1f06fcc
commit
0cbc000b24
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ port_wg=$(ynh_find_port --port=8095)
|
||||||
ynh_app_setting_set --app=$app --key=port_wg --value=$port_wg
|
ynh_app_setting_set --app=$app --key=port_wg --value=$port_wg
|
||||||
|
|
||||||
# Find an available port for WireGuard UI
|
# Find an available port for WireGuard UI
|
||||||
port=$(ynh_find_port --port=8096)
|
port=$(ynh_find_port --port=$(($port_wg+1)))
|
||||||
ynh_app_setting_set --app=$app --key=port --value=$port
|
ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
|
|
||||||
# Open the WireGuard port
|
# Open the WireGuard port
|
||||||
|
|
Loading…
Add table
Reference in a new issue