|
|
@ -157,7 +157,7 @@ const OptionList = new Lang.Class({
|
|
|
|
|
|
|
|
|
|
|
|
setOptionText: function(idx, text) {
|
|
|
|
setOptionText: function(idx, text) {
|
|
|
|
if(this.items.length <= idx) {
|
|
|
|
if(this.items.length <= idx) {
|
|
|
|
log("attempt to setOptionText with idx = "+ idx + " when this.items.length = "+ this.items.length)
|
|
|
|
//log("SGFW: attempt to setOptionText with idx = "+ idx + " when this.items.length = "+ this.items.length)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.items[idx].setText(text);
|
|
|
|
this.items[idx].setText(text);
|
|
|
@ -232,7 +232,7 @@ const OptionList = new Lang.Class({
|
|
|
|
case 3:
|
|
|
|
case 3:
|
|
|
|
return RuleScope.APPLY_PROCESS;
|
|
|
|
return RuleScope.APPLY_PROCESS;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
log("unexpected scope value "+ this.buttonGroup._selected);
|
|
|
|
log("SGFW: unexpected scope value "+ this.buttonGroup._selected);
|
|
|
|
return RuleScope.APPLY_SESSION;
|
|
|
|
return RuleScope.APPLY_SESSION;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -248,7 +248,7 @@ const OptionList = new Lang.Class({
|
|
|
|
case RuleScope.APPLY_FOREVER:
|
|
|
|
case RuleScope.APPLY_FOREVER:
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
log("unexpected scope value "+ scope);
|
|
|
|
log("SGFW: unexpected scope value "+ scope);
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -483,9 +483,6 @@ const PromptDialog = new Lang.Class({
|
|
|
|
this.optionList.addTLSOption(true);
|
|
|
|
this.optionList.addTLSOption(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// let tlsGuard = new OptionListItem("Drop connection if not TLS with valid certificate.",0);
|
|
|
|
|
|
|
|
//box.add_child(optionList.actor);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this._initialKeyFocusDestroyId = 1;
|
|
|
|
this._initialKeyFocusDestroyId = 1;
|
|
|
|
this.setButtons([
|
|
|
|
this.setButtons([
|
|
|
|
{ label: "Allow", action: Lang.bind(this, this.onAllow) },
|
|
|
|
{ label: "Allow", action: Lang.bind(this, this.onAllow) },
|
|
|
@ -590,8 +587,8 @@ const PromptDialog = new Lang.Class({
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.optionList.setOptionText(0, "Only "+ address + " on "+ port_str);
|
|
|
|
this.optionList.setOptionText(0, "Only "+ address + " on "+ port_str);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (expert) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (expert) {
|
|
|
|
if (proto == "icmp") {
|
|
|
|
if (proto == "icmp") {
|
|
|
|
this.optionList.setOptionText(1, "Only "+ address + " with any ICMP code");
|
|
|
|
this.optionList.setOptionText(1, "Only "+ address + " with any ICMP code");
|
|
|
|
} else if (proto == "udp") {
|
|
|
|
} else if (proto == "udp") {
|
|
|
|