mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-08-04 07:08:10 +00:00
Use explicit ipv4 in curl makefile; add timeout; disable unused emulator threads
This commit is contained in:
parent
30f7e6b9c1
commit
dcdf05a318
2 changed files with 4 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -25,7 +25,7 @@ config/prod-sys.config: config/sys.config.example
|
|||
config/prod-vm.args: config/vm.args.example
|
||||
[ -f $@ ] && diff $^ $@ || true
|
||||
cp -i -b $^ $@
|
||||
@IP=$(shell curl -s http://ip.seriyps.ru || curl -s https://digitalresistance.dog/myIp) \
|
||||
@IP=$(shell curl -s -4 -m 10 http://ip.seriyps.ru || curl -s -4 -m 10 https://digitalresistance.dog/myIp) \
|
||||
&& sed -i s/@0\.0\.0\.0/@$${IP}/ $@
|
||||
|
||||
user:
|
||||
|
|
|
|||
|
|
@ -3,4 +3,6 @@
|
|||
-setcookie mtproto-proxy-cookie
|
||||
|
||||
## this one is essential for >500 connections
|
||||
+K true
|
||||
+K true
|
||||
+A 2
|
||||
+SDio 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue