Changeset 05d964c


Ignore:
Timestamp:
2011-06-15T12:47:16Z (13 years ago)
Author:
Jan Hruban <hrubi13@…>
Branches:
master
Children:
bf8ee39
Parents:
bd11422
Message:

Bind to IPv6 address when -H is in IPv6 format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/skype/skyped.py

    rbd11422 r05d964c  
    180180def server(host, port, skype = None):
    181181        global options
    182         sock = socket.socket()
     182        if ":" in host:
     183                sock = socket.socket(socket.AF_INET6)
     184        else:
     185                sock = socket.socket()
    183186        sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    184187        sock.bind((host, port))
     
    360363        -d      --debug         enable debug messages
    361364        -h      --help          this help
    362         -H      --host          set the tcp host (default: %s)
     365        -H      --host          set the tcp host, supports IPv4 and IPv6 (default: %s)
    363366        -l      --log           set the log file in background mode (default: none)
    364367        -n      --nofork        don't run as daemon in the background
Note: See TracChangeset for help on using the changeset viewer.