forked from SoDOff-Project/sodoff-mmo
use MMOServer in appsettings.json for config
and improved run.sh
This commit is contained in:
parent
82e83722da
commit
08b74957a8
3
run.sh
3
run.sh
@ -1 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
dotnet run --project src/sodoffmmo.csproj
|
dotnet run --project src/sodoffmmo.csproj
|
||||||
|
@ -15,7 +15,7 @@ internal static class Configuration {
|
|||||||
.AddJsonFile("appsettings.json", true)
|
.AddJsonFile("appsettings.json", true)
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
ServerConfiguration? serverConfiguration = config.GetSection("ServerConfiguration").Get<ServerConfiguration>();
|
ServerConfiguration? serverConfiguration = config.GetSection("MMOServer").Get<ServerConfiguration>();
|
||||||
if (serverConfiguration is null)
|
if (serverConfiguration is null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"ServerConfiguration": {
|
"MMOServer": {
|
||||||
"// ListenIP": "Listening IP address for the asset server, default is '*' which represents all IPv4 and IPv6 addresses",
|
"// ListenIP": "Listening IP address for the asset server, default is '*' which represents all IPv4 and IPv6 addresses",
|
||||||
"ListenIP": "*",
|
"ListenIP": "*",
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user