From d4b8c76cdfd4ceae52c3e5153d142643f504f1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D1=80=D0=BE?= =?UTF-8?q?=D1=85=D0=BE=D1=80=D0=BE=D0=B2?= Date: Mon, 22 Oct 2018 22:21:30 +0200 Subject: [PATCH] Ease debugging use fully qualified node name --- Makefile | 2 ++ config/vm.args.example | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ce7e272..83dfc94 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,8 @@ 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) \ + && sed -i s/@0\.0\.0\.0/@$${IP}/ $@ user: sudo useradd -r $(USER) || true diff --git a/config/vm.args.example b/config/vm.args.example index 0e5139d..cf57fbd 100644 --- a/config/vm.args.example +++ b/config/vm.args.example @@ -1,4 +1,4 @@ --sname mtproto_proxy +-name mtproto_proxy@0.0.0.0 -setcookie mtproto-proxy-cookie