Ë
    @OOfh  ã                  ó,   — d dl mZ d dlZddd„Zddd„Zy)é    )ÚannotationsNc                ó<  — t        j                   t         j                  t         j                  «      }	 |j                  | df«       |j	                  «       d   |j                  «        S # t        $ r Y |j                  «        yw xY w# |j                  «        w xY w)zÌ
    Get the default local outgoing IPv4 address without sending any packets.
    This will fail if the target address is known to be unreachable.
    We use Google DNS's IPv4 address as the default.
    éP   r   N)ÚsocketÚAF_INETÚ
SOCK_DGRAMÚconnectÚgetsocknameÚcloseÚOSError©Ú	reachableÚss     úW/var/www/premiumrankchecker/venv/lib/python3.12/site-packages/mitmproxy/net/local_ip.pyÚget_local_ipr      su   € ô 	‰”f—n‘n¤f×&7Ñ&7Ó8€AðØ		‰	9˜b/Ô"Ø}‰}‹˜qÑ!ð 	
‰	øô ò Øà	‰	ðûð 	
‰	úó#   ´%A* Á*	BÁ3B	 ÂBÂB	 Â	Bc                ó<  — t        j                   t         j                  t         j                  «      }	 |j                  | df«       |j	                  «       d   |j                  «        S # t        $ r Y |j                  «        yw xY w# |j                  «        w xY w)zÌ
    Get the default local outgoing IPv6 address without sending any packets.
    This will fail if the target address is known to be unreachable.
    We use Google DNS's IPv6 address as the default.
    r   r   N)r   ÚAF_INET6r   r	   r
   r   r   r   s     r   Úget_local_ip6r      su   € ô 	‰”f—o‘o¤v×'8Ñ'8Ó9€AðØ		‰	9˜b/Ô"Ø}‰}‹˜qÑ!ð 	
‰	øô ò Øà	‰	ðûð 	
‰	úr   )z8.8.8.8)r   ÚstrÚreturnz
str | None)z2001:4860:4860::8888)Ú
__future__r   r   r   r   © ó    r   ú<module>r      s   ðÝ "ã ôõ"r   