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