diff options
Diffstat (limited to 'src/Mayaqua/Unix.c')
-rw-r--r-- | src/Mayaqua/Unix.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Mayaqua/Unix.c b/src/Mayaqua/Unix.c index 54677753..3a5ddf28 100644 --- a/src/Mayaqua/Unix.c +++ b/src/Mayaqua/Unix.c @@ -2508,6 +2508,23 @@ UINT UnixGetUID() return (UINT)getuid();
}
+void UnixPrintVpnServerUrlInfo()
+{
+ IP ip;
+
+ TryGetCurrentAcceptingIPv4Address(&ip);
+
+ Print("\nLet's get started by accessing to the following URL from your PC:\n\n"
+ "https://%r:%u/\n"
+ " or\n"
+ "https://%r/\n\n"
+ "Note: IP address may vary. Specify your server's IP address.\n"
+ "A TLS certificate warning will appear because the server uses self signed certificate by default. That is natural. Continue with ignoring the TLS warning."
+ "\n\n",
+ &ip, GC_DEFAULT_PORT, &ip
+ );
+}
+
// Start the service
void UnixStartService(char *name)
{
@@ -2547,6 +2564,12 @@ void UnixStartService(char *name) UniPrint(_UU("UNIX_SVC_NONROOT"));
}
+ if (StrCmpi(name, "vpnserver") == 0 || StrCmpi(name, "vpnbridge") == 0)
+ {
+ // Print the IP address information
+ UnixPrintVpnServerUrlInfo();
+ }
+
FreeSingleInstance(inst);
// Create a child process
|