From dcdf05a31850154be611ade034f4a70587d3cbc4 Mon Sep 17 00:00:00 2001 From: Sergey Prokhorov Date: Sun, 18 Aug 2019 19:30:11 +0200 Subject: [PATCH] Use explicit ipv4 in curl makefile; add timeout; disable unused emulator threads --- Makefile | 2 +- config/vm.args.example | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 504fd59..428f1b8 100644 --- a/Makefile +++ b/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: diff --git a/config/vm.args.example b/config/vm.args.example index cf57fbd..82ae063 100644 --- a/config/vm.args.example +++ b/config/vm.args.example @@ -3,4 +3,6 @@ -setcookie mtproto-proxy-cookie ## this one is essential for >500 connections -+K true \ No newline at end of file ++K true ++A 2 ++SDio 2