jpoliv / wakeonlan

Perl script for waking up computers via Wake-On-LAN magic packets
306 stars 32 forks source link

Unable to use public IPv6 for ip_address argument #2

Open lukeweller opened 6 years ago

lukeweller commented 6 years ago

When I attempt to use my server's public IPv6 ip address as an option for the script, I get the following error:

Use of uninitialized value in subroutine entry at /usr/local/bin/wakeonlan line 75.
Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /usr/local/bin/wakeonlan line 75.

It looks as though using the IPv6 ip is not supported by the script at this time. Is that a feature that needs to be added, or am I using the script incorrectly?

Note: The script works correctly when using no ip_address argument or my local ip address