Esempio n. 1
0
        static void SetFirewall()
        {
            FirewallHelper.AllowApplication(Application.ExecutablePath);

            FirewallHelper.AllowTcpPort(50457, "50457-测试规则");
            FirewallHelper.AllowUdpPort(50458, "50458-测试规则");
        }