mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-18 20:09:54 +00:00
9 lines
334 B
Batchfile
9 lines
334 B
Batchfile
@echo off
|
|
|
|
set RULE_NAME=Sunshine
|
|
set PROGRAM_BIN="%~dp0sunshine.exe"
|
|
|
|
rem Add the rule
|
|
netsh advfirewall firewall add rule name=%RULE_NAME% dir=in action=allow protocol=tcp program=%PROGRAM_BIN% enable=yes
|
|
netsh advfirewall firewall add rule name=%RULE_NAME% dir=in action=allow protocol=udp program=%PROGRAM_BIN% enable=yes
|