hi,
if i enter in browser a ipv6 address in this syntax:
http://\[2001:6f8:900:8dff::4242]:10000/
to login, i get redirected to:
HTTP/1.0 302 Moved Temporarily
Date: Wed, 5 Sep 2012 08:45:00 GMT
Server: MiniServ/1.590
Set-Cookie: sid=d...d; path=/
Location: http://\[2001:6f8:900:8dff::4242]:10000:10000/
Connection: close
i think in miniserv.pl is an error in matching ipv6 addresses.
here my dirty patch:
miniSUSE:~ # diff /usr/libexec/webmin/miniserv.pl /usr/libexec/webmin/miniserv.pl-org
1393,1398c1393
< if ($header{'host'} =~ /^(\[[0-9a-fA-F:.]+\]):([0-9]+)$/) {
< ($host, $port) = ($1, $2);
< }
< else {
< $host = $header{'host'};
< }
---
> $host = $header{'host'};
now i can login:
HTTP/1.0 302 Moved Temporarily
Date: Thu, 6 Sep 2012 20:15:31 GMT
Server: MiniServ/1.590
Set-Cookie: sid=c...7; path=/
Location: http://\[2001:6f8:900:8dff::4242]:10000/
Connection: close
same in usermin.
could you please check and if possible change.
tia
christian
Thanks for pointing this out - I will fix it in the next release of Webmin