@@ -109,7 +109,7 @@ public Installer removeSystemSettings() {
109
109
}
110
110
111
111
// Cleanup firewall rules
112
- ShellUtilities .execute ("netsh.exe" , "advfirewall" , "delete" , "rule" , String .format ("name=%s" , ABOUT_TITLE ));
112
+ ShellUtilities .execute ("netsh.exe" , "advfirewall" , "firewall" , " delete" , "rule" , String .format ("name=%s" , ABOUT_TITLE ));
113
113
return this ;
114
114
}
115
115
@@ -146,7 +146,7 @@ public Installer addSystemSettings() {
146
146
147
147
// Firewall rules
148
148
String ports = StringUtils .join (PrintSocketServer .SECURE_PORTS , "," ) + "," + StringUtils .join (PrintSocketServer .INSECURE_PORTS , "," );
149
- ShellUtilities .execute ("netsh.exe" , "advfirewall" , "delete" , "rule" , String .format ("name=%s" , ABOUT_TITLE ));
149
+ ShellUtilities .execute ("netsh.exe" , "advfirewall" , "firewall" , " delete" , "rule" , String .format ("name=%s" , ABOUT_TITLE ));
150
150
ShellUtilities .execute ("netsh.exe" , "advfirewall" , "firewall" , "add" , "rule" , String .format ("name=%s" , ABOUT_TITLE ),
151
151
"dir=in" , "action=allow" , "profile=any" , String .format ("localport=%s" , ports ), "localip=any" , "protocol=tcp" );
152
152
return this ;
0 commit comments