upnp
This commit is contained in:
parent
62c3e42401
commit
47120db47c
|
|
@ -108,12 +108,15 @@ namespace RBXLegacyLauncher
|
|||
|
||||
void Button2Click(object sender, EventArgs e)
|
||||
{
|
||||
Process pmap = new Process();
|
||||
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";
|
||||
pmap.StartInfo.UseShellExecute = false;
|
||||
pmap.StartInfo.CreateNoWindow = true;
|
||||
pmap.Start();
|
||||
if (GlobalVars.upnp == true)
|
||||
{
|
||||
Process pmap = new Process();
|
||||
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";
|
||||
pmap.StartInfo.UseShellExecute = false;
|
||||
pmap.StartInfo.CreateNoWindow = true;
|
||||
pmap.Start();
|
||||
}
|
||||
WriteConfigValues();
|
||||
StartServer();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue