Пример #1
0
def tserver_conn():
    """
    @return: mitmproxy.proxy.connection.ServerConnection
    """
    c = ServerConnection.from_state(
        dict(address=dict(address=("address", 22), use_ipv6=True),
             source_address=dict(address=("address", 22), use_ipv6=True),
             cert=None,
             timestamp_start=1,
             timestamp_tcp_setup=2,
             timestamp_ssl_setup=3,
             timestamp_end=4,
             ssl_established=False,
             sni="address",
             via=None))
    c.reply = controller.DummyReply()
    return c
Пример #2
0
def tserver_conn():
    """
    @return: mitmproxy.proxy.connection.ServerConnection
    """
    c = ServerConnection.from_state(dict(
        address=dict(address=("address", 22), use_ipv6=True),
        source_address=dict(address=("address", 22), use_ipv6=True),
        ip_address=None,
        cert=None,
        timestamp_start=1,
        timestamp_tcp_setup=2,
        timestamp_ssl_setup=3,
        timestamp_end=4,
        ssl_established=False,
        sni="address",
        via=None
    ))
    c.reply = controller.DummyReply()
    return c