mirror of https://github.com/BOINC/boinc.git
user host info page: when giving IP data, show both private
AND external IP (only for owner of host machine) svn path=/trunk/boinc/; revision=9245
This commit is contained in:
parent
25ce5f8069
commit
d68c82518a
|
@ -495,8 +495,11 @@ David 15 Jan 2006
|
|||
|
||||
Bruce 16 Jan 2006
|
||||
- ops page: add external IP to data shown for host
|
||||
- user host info page: when giving IP data, show both private
|
||||
AND external IP (only for owner of host machine).
|
||||
|
||||
html/
|
||||
inc/
|
||||
db_ops.inc
|
||||
host.inc
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ function show_host($host, $private, $ipprivate) {
|
|||
if ($private) {
|
||||
if ($ipprivate) {
|
||||
row2("IP address", "$host->last_ip_addr<br>(same the last $host->nsame_ip_addr times)");
|
||||
if (strcmp($host->last_ip_addr, $host->external_ip_addr)) row2("External IP address", $host->external_ip_addr);
|
||||
} else {
|
||||
row2("IP address", "<a href=show_host_detail.php?hostid=$host->id&ipprivate=1>Show IP address</a>");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue