mirror of
https://github.com/stascorp/rdpwrap.git
synced 2026-11-05 23:12:33 -05:00
Allow UDP 3389 at firewall configuration
This commit is contained in:
1 parent
a3cd8ca630
commit
56915ccf5b
2 files changed
+6
-3
No files matched your search
@@ -978,8 +978,10 @@ end;
|
||||
procedure TSConfigFirewall(Enable: Boolean);
|
||||
begin
|
||||
if Enable then
|
||||
ExecWait('netsh advfirewall firewall add rule name="Remote Desktop" dir=in protocol=tcp localport=3389 profile=any action=allow')
|
||||
else
|
||||
begin
|
||||
ExecWait('netsh advfirewall firewall add rule name="Remote Desktop" dir=in protocol=tcp localport=3389 profile=any action=allow');
|
||||
ExecWait('netsh advfirewall firewall add rule name="Remote Desktop" dir=in protocol=udp localport=3389 profile=any action=allow');
|
||||
end else
|
||||
ExecWait('netsh advfirewall firewall delete rule name="Remote Desktop"');
|
||||
end;
|
||||
|
||||
|
||||
Reference in new issue
Block a user