You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
507 B
C#
20 lines
507 B
C#
using System;
|
|
|
|
namespace backDot.Commom{
|
|
public class Constants{
|
|
public static int Port = 3666;
|
|
public static string EndOfMessage = "<|EOM|>";
|
|
|
|
public static string GetServerHost(){
|
|
string? _clientHost = Environment.GetEnvironmentVariable("backdothost");
|
|
|
|
if (_clientHost == null || _clientHost == ""){
|
|
_clientHost = "127.0.0.0";
|
|
}
|
|
|
|
Console.WriteLine(_clientHost);
|
|
|
|
return _clientHost;
|
|
}
|
|
}
|
|
} |