1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 01:52:18 +01:00

Use underscore instead of colon for host/port.

- munin plugin only supports a-zA-Z0-9_ so colon will probably give us problems.
This commit is contained in:
Jean Paul Galea 2015-09-08 14:56:02 +02:00
parent 780b0eff13
commit 446d1c58ee

View File

@ -378,7 +378,7 @@ function shortname ($url)
return false;
if (array_key_exists('port', $url) === TRUE && $url['port'] !== NULL)
return $url['host'] . ':' . $url['port'];
return $url['host'] . '_' . $url['port'];
return $url['host'];
}