Skip to content

Commit de4cf69

Browse files
committed
Connection Variables.
1 parent 669cf8f commit de4cf69

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

BHD-ServerManager/Classes/Services/NetLimiter/NetLimiterClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ public static async Task<bool> EndProgramAsync()
176176

177177
public static void StartBridgeProcess(string hostname = "localhost", ushort port = 11111, string username = "", string password = "")
178178
{
179+
179180
if (_bridgeProcess != null && !_bridgeProcess.HasExited)
180181
{
181182
AppDebug.Log("NetLimiterClient", "Bridge process already running");

BHD-ServerManager/Forms/Panels/tabBans.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ private async void TabBans_VisibleChanged(object? sender, EventArgs e)
4141
{
4242
_initialized = true;
4343

44-
NetLimiterClient.StartBridgeProcess();
44+
// NetLimiterClient.StartBridgeProcess();
4545

46-
await tickerNetLimiterMonitor.InitializeAsync(Path.Combine("C:\\bhd-serv\\server-rs\\","dfbhd.exe"));
46+
// await tickerNetLimiterMonitor.InitializeAsync(Path.Combine(theInstance.profileServerPath,"dfbhd.exe"));
4747

4848
}
4949
}

BHD-ServerManager/ServerManager.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<ApplicationIcon>Icon.ico</ApplicationIcon>
1414
<ProduceReferenceAssembly>True</ProduceReferenceAssembly>
1515
<PlatformTarget>AnyCPU</PlatformTarget>
16-
<BaseOutputPath>bin\</BaseOutputPath>
16+
<BaseOutputPath>\\VM-DEV\ServerData\Development\HawkSync</BaseOutputPath>
1717
<RunAnalyzersDuringLiveAnalysis>True</RunAnalyzersDuringLiveAnalysis>
1818
<RunAnalyzersDuringBuild>True</RunAnalyzersDuringBuild>
1919
<EnableNETAnalyzers>False</EnableNETAnalyzers>

NetLimiterBridge/NetLimiterBridge.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<DebugSymbols>true</DebugSymbols>
3636
<DebugType>full</DebugType>
3737
<Optimize>false</Optimize>
38-
<OutputPath>bin\</OutputPath>
38+
<OutputPath>\\VM-DEV\ServerData\Development\HawkSync\Debug\net8.0-windows10.0.19041.0\NetLimiterBridge\</OutputPath>
3939
<DefineConstants>DEBUG;TRACE</DefineConstants>
4040
<ErrorReport>prompt</ErrorReport>
4141
<WarningLevel>4</WarningLevel>
@@ -152,7 +152,6 @@
152152
</ItemGroup>
153153
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
154154
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
155-
156155
</Target>
157156
<Import Project="packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.119.0\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets" Condition="Exists('packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.119.0\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets')" />
158157
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

NetLimiterBridge/Program.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ public static async Task Main(string[] args)
1010
// Create an instance of the NetLimiterBridge class
1111
var bridge = new NetLimiterBridge();
1212

13-
// Connection parameters
14-
string hostname = "38.54.101.108";
15-
ushort port = 9298;
16-
string username = "rssaka";
17-
string password = "Dk75Rn43s!";
13+
string hostname = args[1];
14+
ushort port = ushort.Parse(args[2]);
15+
string username = args[3];
16+
string password = args[4];
1817

1918
// Run the bridge service
2019
await bridge.RunAsync(hostname, port, username, password);

0 commit comments

Comments
 (0)