mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Pass proper arguments when enable/disable a port (fix #96)
This commit is contained in:
parent
997bc17eb9
commit
82e5fae76d
1 changed files with 4 additions and 2 deletions
|
@ -1524,9 +1524,10 @@ app = Sammy('#main', function (sam) {
|
||||||
|
|
||||||
switch (connection) {
|
switch (connection) {
|
||||||
case 'ipv4':
|
case 'ipv4':
|
||||||
|
endurl = 'ipv4_only';
|
||||||
break;
|
break;
|
||||||
case 'ipv6':
|
case 'ipv6':
|
||||||
endurl = 'ipv6'
|
endurl = 'ipv6_only';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1560,7 +1561,8 @@ app = Sammy('#main', function (sam) {
|
||||||
// - UDP
|
// - UDP
|
||||||
// - TCP
|
// - TCP
|
||||||
// - Both
|
// - Both
|
||||||
// --ipv6:
|
// --ipv4-only:
|
||||||
|
// --ipv6-only:
|
||||||
// --no-upnp:
|
// --no-upnp:
|
||||||
var params = {
|
var params = {
|
||||||
'port' : port,
|
'port' : port,
|
||||||
|
|
Loading…
Add table
Reference in a new issue