Server : nginx/1.24.0 System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE Directory : /lib/python3/dist-packages/cloudinit/sources/__pycache__/ |
Upload File : |
� x[h�: � � � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlZd dlm Z d dl mZ d dlm Z d dlmZmZmZmZmZ d dlmZmZ d dlmZ d d lmZmZ d d lmZ d dlmZ ej@ e!� Z"dd gZ#dZ$dZ%dZ& G d� dejN jP � Z)d� Z*d� Z+ G d� dejX � Z-e-ej\ ffgZ/d� Z0y)� N)�urlparse)�ConnectionError)�HTTPConnection)�PoolManager)�dmi�performance�sources� url_helper�util)� EventScope� EventType)�NoDHCPLeaseError)�EphemeralDHCPv4�EphemeralIPv6Network)�DataSourceHostname)�ProcessExecutionErrorzhttp://169.254.42.42zhttp://[fd00:42::42]� � � c �* � � e Zd ZdZ� fd�Zdd�Z� xZS )�SourceAddressAdapterzF Adapter for requests to choose the local address to bind to. c �: �� || _ t t | � di |�� y )N� )�source_address�superr �__init__)�selfr �kwargs� __class__s ��F/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceScaleway.pyr zSourceAddressAdapter.__init__+ s �� �,��� �"�D�2�<�V�<� c � � t j t j t j dfgz }t |||| j |�� | _ y )N� )� num_pools�maxsize�blockr �socket_options)r �default_socket_options�socket� SOL_SOCKET�SO_REUSEPORTr r �poolmanager)r �connectionsr% r&