X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/8b84db5b0c03c7c635a4d73060f444d2ef53c757..6e62228d09c5067f798b356b88b0c53190f75729:/src/main.sml diff --git a/src/main.sml b/src/main.sml index 490f66d..5b9ee57 100644 --- a/src/main.sml +++ b/src/main.sml @@ -122,15 +122,6 @@ fun eval fname = val dispatcher = Config.dispatcher ^ ":" ^ Int.toString Config.dispatcherPort -fun hostname () = - let - val inf = TextIO.openIn "/etc/hostname" - in - case TextIO.inputLine inf of - NONE => (TextIO.closeIn inf; raise Fail "No line in /etc/hostname") - | SOME line => (TextIO.closeIn inf; String.substring (line, 0, size line - 1)) - end - fun request fname = let val uid = Posix.ProcEnv.getuid () @@ -255,7 +246,7 @@ fun service () = fun slave () = let - val host = hostname () + val host = Slave.hostname () val context = OpenSSL.context (Config.certDir ^ "/" ^ host ^ ".pem", Config.keyDir ^ "/" ^ host ^ "/key.pem",