# HG changeset patch # User Franz Glasner # Date 1592167526 -7200 # Node ID 0ad8957eb3a979d68d6e9fc83fd0313dbb633e16 # Parent 77ed99bd6c71685654f0f724105e2956371d4495 use strrchr to get port. Noticed an ipv6 --http-socket=[::]:80 had a bad port. commit 43bd09d6ee3fc46dfc7795ac6a9b5ca34ef61f65 diff -r 77ed99bd6c71 -r 0ad8957eb3a9 uwsginl/files/patch-plugins_corerouter_cr__common.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl/files/patch-plugins_corerouter_cr__common.c Sun Jun 14 22:45:26 2020 +0200 @@ -0,0 +1,11 @@ +--- plugins/corerouter/cr_common.c.orig 2020-06-14 20:44:20 UTC ++++ plugins/corerouter/cr_common.c +@@ -62,7 +62,7 @@ void uwsgi_corerouter_setup_sockets(struct uwsgi_corer + + // fix SERVER_PORT + if (!ugs->port || !ugs->port_len) { +- ugs->port = strchr(ugs->name, ':'); ++ ugs->port = strrchr(ugs->name, ':'); + if (ugs->port) { + ugs->port++; + ugs->port_len = strlen(ugs->port);