diff --git a/src/utils/os.c b/src/utils/os.c
index c94e271be545dfe1bf51ec70d34887fc73ff3a19..2b6a51460a67f89122dbee5ec7d75d70e2b3fe82 100644 (file)
--- a/src/utils/os.c
+++ b/src/utils/os.c
if (address) {
host = address;
- port = strchr(host, ':');
+ port = strrchr(host, ':');
if (port) {
*port = '\0';
++port;