Skip to content

2 Ways to connect a proxy? #440

@Requestedd

Description

@Requestedd

Sorry to ask a rather stupid question, but at the moment, after looking at the steampy library and reading the documentation, I have found 2 ways to connect a proxy.:

1:


steam_client = SteamClient('MY_API_KEY')
proxies =  {
    "http": "http://login:password@host:port", 
    "https": "http://login:password@host:port"
}
steam_client.set_proxies(proxies)

2:

from steampy.client import SteamClient

proxies =  {
"http": "http://login:password@host:port", 
"https": "http://login:password@host:port"
}

steam_client = SteamClient('MY_API_KEY', proxies=proxies)

Can you explain to me how these methods differ, and which one do I need to use so that a proxy is used throughout the entire connection, starting from the login and ending with all the library functions? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions