alexbers / mtprotoproxy

Async MTProto proxy for Telegram
MIT License
1.59k stars 351 forks source link

How to set the preferred network interface? #229

Closed ali-jk closed 4 years ago

ali-jk commented 4 years ago

hi, I have 2 network interfaces on my server as eth0 & eth0:0 , how can I force your code to use eth0:0? eth0 is banned in country but eth0:0 IP is working fine

seriyps commented 4 years ago

LISTEN_ADDR_IPV4 in config.py

ali-jk commented 4 years ago

it should be like LISTEN_ADDR_IPV4 = xxx.xxx.xxx.xxx correct?

Kirya2k commented 4 years ago

Yep