]> git.deb.at Git - rhonda/impostor.git/commitdiff
Change UDPMasterEndpoint to UdpMasterEndpoint
authorAeonLucid <aeonlucid@gmail.com>
Wed, 30 Sep 2020 19:57:02 +0000 (21:57 +0200)
committerAeonLucid <aeonlucid@gmail.com>
Wed, 30 Sep 2020 19:57:02 +0000 (21:57 +0200)
src/Impostor.Server/Data/ServerRedirectorConfig.cs
src/Impostor.Server/Net/Redirector/NodeLocatorUDP.cs
src/Impostor.Server/Net/Redirector/NodeLocatorUDPService.cs
src/Impostor.Server/Program.cs
src/Impostor.Server/config.json

index d2ebe518c41c60ad5d201f300f19075032632377..fa458561db28a07a681d6636809f99502f61e1ef 100644 (file)
@@ -14,7 +14,7 @@ namespace Impostor.Server.Data
         public class NodeLocator
         {
             public string Redis { get; set; }
-            public string UDPMasterEndpoint { get; set; }
+            public string UdpMasterEndpoint { get; set; }
         }
     }
 }
\ No newline at end of file
index 7b32ed5277257b3a33ad0fb879d11c5362cd9716..aad8149056b50176e15f6b8d6e80226a85697c37 100644 (file)
@@ -30,9 +30,9 @@ namespace Impostor.Server.Net.Redirector
             {
                 _isMaster = false;
                 
-                if (!IPEndPoint.TryParse(config.Value.Locator.UDPMasterEndpoint, out var endpoint))
+                if (!IPEndPoint.TryParse(config.Value.Locator.UdpMasterEndpoint, out var endpoint))
                 {
-                    throw new ArgumentException("UDPMasterEndpoint should be in the ip:port format.");
+                    throw new ArgumentException("UdpMasterEndpoint should be in the ip:port format.");
                 }
                 
                 _logger.LogWarning("Node server will send updates to {0}.", endpoint);
index eeb5e3866cc8157a416a179c2ffe6aaf70bc7025..46d27f78c4b3e905aac06907160b1daa7d6c401b 100644 (file)
@@ -25,9 +25,9 @@ namespace Impostor.Server.Net.Redirector
             _nodeLocator = (NodeLocatorUDP) nodeLocator;
             _logger = logger;
 
-            if (!IPEndPoint.TryParse(options.Value.Locator.UDPMasterEndpoint, out var endpoint))
+            if (!IPEndPoint.TryParse(options.Value.Locator.UdpMasterEndpoint, out var endpoint))
             {
-                throw new ArgumentException("UDPMasterEndpoint should be in the ip:port format.");
+                throw new ArgumentException("UdpMasterEndpoint should be in the ip:port format.");
             }
 
             _client = new UdpClient(endpoint)
index 96dd162a913922683eafbf48741de33ffbdfe745..b852db6140f8c3b6d57876cbb510a72005dd88f0 100644 (file)
@@ -77,7 +77,7 @@ namespace Impostor.Server
                                 options.InstanceName = "ImpostorRedis";
                             });
                         }
-                        else if (!string.IsNullOrEmpty(redirector.Locator.UDPMasterEndpoint))
+                        else if (!string.IsNullOrEmpty(redirector.Locator.UdpMasterEndpoint))
                         {
                             services.AddSingleton<INodeLocator, NodeLocatorUDP>();
 
index d7b604eafed2dc986fd12a624fe1692f4324ce4d..d64bd7fb69f34e2d50e48c70ef8a1c0bb39b1bbd 100644 (file)
@@ -10,7 +10,7 @@
     "Master": true,
     "Locator": {
       "Redis": "127.0.0.1.6379",
-      "UDPMasterEndpoint": "127.0.0.1:32320"
+      "UdpMasterEndpoint": "127.0.0.1:32320"
     },
     "Nodes": [
       {