upnp
This commit is contained in:
parent
62c3e42401
commit
47120db47c
|
|
@ -108,12 +108,15 @@ namespace RBXLegacyLauncher
|
||||||
|
|
||||||
void Button2Click(object sender, EventArgs e)
|
void Button2Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Process pmap = new Process();
|
if (GlobalVars.upnp == true)
|
||||||
pmap.StartInfo.FileName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\jreportable\\bin\\java.exe";
|
{
|
||||||
pmap.StartInfo.Arguments = "-jar upnp.jar -externalPort" + GlobalVars.ServerPort + " -internalPort" + GlobalVars.ServerPort + "-ip \"localhost\" -protocol udp";
|
Process pmap = new Process();
|
||||||
pmap.StartInfo.UseShellExecute = false;
|
pmap.StartInfo.FileName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\jreportable\\bin\\java.exe";
|
||||||
pmap.StartInfo.CreateNoWindow = true;
|
pmap.StartInfo.Arguments = "-jar upnp.jar -externalPort" + GlobalVars.ServerPort + " -internalPort" + GlobalVars.ServerPort + "-ip \"localhost\" -protocol udp";
|
||||||
pmap.Start();
|
pmap.StartInfo.UseShellExecute = false;
|
||||||
|
pmap.StartInfo.CreateNoWindow = true;
|
||||||
|
pmap.Start();
|
||||||
|
}
|
||||||
WriteConfigValues();
|
WriteConfigValues();
|
||||||
StartServer();
|
StartServer();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue