mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
There are only 65536 ports https://github.com/webmin/webmin/discussions/2161
This commit is contained in:
@@ -349,6 +349,9 @@ if ($fh6) {
|
||||
}
|
||||
while(1) {
|
||||
$$port++;
|
||||
if ($$port >= 65536) {
|
||||
return "Failed to allocate a free port!";
|
||||
}
|
||||
$pack = pack_sockaddr_in($$port, INADDR_ANY);
|
||||
next if (!bind($fh, $pack));
|
||||
if ($fh6) {
|
||||
|
||||
Reference in New Issue
Block a user