From 1efa8fa212280b88aa1c703d4c25a72f2456b1a1 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Thu, 21 Mar 2024 00:02:57 +0100 Subject: [PATCH] renamed to nameserver in kernel settings --- src/bin/KSettings.hx | 10 +++++----- src/kernel/KernelSettings.hx | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/bin/KSettings.hx b/src/bin/KSettings.hx index e3fbe0f..423d125 100644 --- a/src/bin/KSettings.hx +++ b/src/bin/KSettings.hx @@ -17,8 +17,8 @@ class KSettings extends CLIAppBase { var value = switch (key) { case "hostname": KernelSettings.hostname; - case "sitecontroller": - Std.string(KernelSettings.siteController); + case "nameServer": + Std.string(KernelSettings.nameServer); default: null; } @@ -50,8 +50,8 @@ class KSettings extends CLIAppBase { switch (key) { case "hostname": KernelSettings.hostname = value; - case "sitecontroller": - KernelSettings.siteController = Std.parseInt(value); + case "nameServer": + KernelSettings.nameServer = Std.parseInt(value); default: handle.writeLine("Key not found"); return false; @@ -61,7 +61,7 @@ class KSettings extends CLIAppBase { registerSyncSubcommand("list", (args) -> { handle.writeLine("hostname"); - handle.writeLine("sitecontroller"); + handle.writeLine("nameServer"); return true; }); } diff --git a/src/kernel/KernelSettings.hx b/src/kernel/KernelSettings.hx index ee367cc..58f8167 100644 --- a/src/kernel/KernelSettings.hx +++ b/src/kernel/KernelSettings.hx @@ -39,20 +39,20 @@ class KernelSettings { return value; } - public static var siteController(get, set):NetworkID; - private static var _siteController:NetworkID = get("siteController"); + public static var nameServer(get, set):NetworkID; + private static var _nameServer:NetworkID = get("nameServer"); - private static function get_siteController():NetworkID { - return _siteController; + private static function get_nameServer():NetworkID { + return _nameServer; } - private static function set_siteController(value:NetworkID):NetworkID { + private static function set_nameServer(value:NetworkID):NetworkID { if (value == null) { - return get_siteController(); + return get_nameServer(); } - set("siteController", value); - _siteController = value; + set("nameServer", value); + _nameServer = value; return value; } }