CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
IO::Socket::SSL not binding to a single IP address

 



Nyoka
New User

Sep 17, 2007, 8:30 AM

Post #1 of 1 (1294 views)
IO::Socket::SSL not binding to a single IP address Can't Post

Hi All,

I am trying to great a webserver that works over https (443) and listens on a single ip address on a machine that has multiple ip addresses.

Code: ( perl )
  1. use IO::Socket::SSL;
  2. $socket = new IO::Socket::SSL(
  3. Listen => 5,
  4. ListenAddr => '1.2.3.4',
  5. LocalPort => 443,
  6. Proto => 'tcp',
  7. Reuse => 1,
  8. SSL_server => 1,
  9. SSL_key_file => $ssl_key_file,
  10. SSL_cert_file => $ssl_cert_file,
  11. SSL_ca_file => $ssl_ca_file,
  12. SSL_verify_mode => 0x00,
  13. SSL_verify_callback => 1,
  14. ) || die "Can't open IO::Socket::SSL : $!\n", &IO::Socket::SSL::errstr, "\n";
  15. print "Current sockhost: ", $socket->sockhost(), "\n";

However, the above code always binds to 0.0.0.0 are there any options that are missing to force perl to bind to a single ip address?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives