[fix] Pass proper arguments when enable/disable a port (fix #96)

This commit is contained in:
Jérôme Lebleu 2015-05-11 14:20:43 +02:00
parent 997bc17eb9
commit 82e5fae76d

View file

@ -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,