mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-05 21:48:49 +01:00
vncserver: use IP when printing browser url
This commit is contained in:
parent
1bda8ab452
commit
e3a41bc055
@ -1096,6 +1096,7 @@ sub DefineFilePathsAndStuff {
|
||||
"# alwaysshared\n");
|
||||
|
||||
chop($host = `uname -n`);
|
||||
chop($hostIP = `hostname -i`);
|
||||
|
||||
&DetectFontPath();
|
||||
}
|
||||
@ -1204,11 +1205,11 @@ sub IsAllInterfaces {
|
||||
}
|
||||
|
||||
sub DeduceBrowserHost {
|
||||
my $browserHost = $host;
|
||||
my $browserHost;
|
||||
my $interface = $opt{"-interface"} || $default_opts{interface};
|
||||
|
||||
if (IsAllInterfaces($interface)) {
|
||||
$browserHost = $host;
|
||||
$browserHost = $hostIP;
|
||||
} else {
|
||||
$browserHost = $interface;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user