mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Use function ref
This commit is contained in:
@@ -55,7 +55,7 @@ else {
|
||||
$ENV{'SERVER_NAME'} ? $ENV{'SERVER_NAME'} :
|
||||
&to_ipaddress(&get_system_hostname());
|
||||
socket(STEST, PF_INET, SOCK_STREAM, getprotobyname("tcp"));
|
||||
$SIG{ALRM} = "connect_timeout";
|
||||
$SIG{ALRM} = \&connect_timeout;
|
||||
alarm(10);
|
||||
$rv = connect(STEST, pack_sockaddr_in($config{'port'}, inet_aton($addr)));
|
||||
close(STEST);
|
||||
|
||||
Reference in New Issue
Block a user