Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Conversation

@wind-hx
Copy link

@wind-hx wind-hx commented Jan 10, 2022

Test passed

@wind-hx
Copy link
Author

wind-hx commented Jan 27, 2022

demo

let proxyOptions = {
        host: '127.0.0.1',
        port: 7890,
        type: 5        // 5: socks5
}
let mtProto = new MTProto({
        api_id: apiId,
        api_hash: apiHash,
        storageOptions: {
            instance: storage
        },
        proxy: proxyOptions
    })

@wind-hx wind-hx changed the title add socks proxy Add socks proxy Jan 28, 2022
host: this.proxy.host, // ipv4 or ipv6 or hostname
port: this.proxy.port,
type: this.proxy.type // Proxy version (4 or 5)
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add authorization.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants