korsygfhrtzangaiide
Elepffwdsff
/
lib64
/
python2.7
/
site-packages
/
hgext
/
zeroconf
/
Upload FileeE
HOME
� Hq�Qc @ sZ d Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z d d l m Z d d l m Z d Z d a d a d � Z d � Z d � Z d e f d � � YZ d � Z d e d � Z e d � Z d � Z d � Z e j e d e � e j e j d e � e j e j d e � e j e d e � e j e d e � d S( s� discover and advertise repositories on the local network Zeroconf-enabled repositories will be announced in a network without the need to configure a server or a service. They can be discovered without knowing their actual IP address. To allow other people to discover your repository using run :hg:`serve` in your repository:: $ cd test $ hg serve You can discover Zeroconf-enabled repositories by running :hg:`paths`:: $ hg paths zc-test = http://example.com:8000/test i����N( t uit hgt encodingt dispatch( t extensions( t servert internalc C s y= t j t j t j � } | j d � | j � d } | SWn t j k rS n XyA t j t j � � d d } | j d � r� d | k r� | SWn# t j t j f k r� d } n Xy= t j t j t j � } | j d � | j � d } | SWn t j k rn X| S( Ns 1.0.0.1i i s 127.t :s 127.0.0.1i ( s 1.0.0.1i ( s 1.0.0.1i ( t sockett AF_INETt SOCK_DGRAMt connectt getsocknamet errort gethostbyaddrt gethostnamet startswitht gaierrort herror( t st ipt dumbip( ( s= /usr/lib64/python2.7/site-packages/hgext/zeroconf/__init__.pyt getip) s* c C s, t sC t � } | j d � r"