Changeset ea4ab02 in osmose-frontend


Ignore:
Timestamp:
Feb 8, 2014 11:07:12 PM (6 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
8e8bc3c
Parents:
fb953a3
Message:

Remove hack around socket.getaddrinfo to force ipv4 as some backends are ipv6-only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/update.py

    rd00ca50 rea4ab02  
    3434    def log(self, text): 
    3535        print text 
    36  
    37  
    38 origGetAddrInfo = socket.getaddrinfo 
    39  
    40 def getAddrInfoWrapper(host, port, family=0, socktype=0, proto=0, flags=0): 
    41    return origGetAddrInfo(host, port, socket.AF_INET, socktype, proto, flags) 
    42  
    43 # replace the original socket.getaddrinfo by our version 
    44 socket.getaddrinfo = getAddrInfoWrapper 
    4536 
    4637########################################################################### 
Note: See TracChangeset for help on using the changeset viewer.