gotty version 0.0.13
Linux debian8 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u2 (2016-01-02) x86_64 GNU/Linux
GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)
Set some environment variables:
root@:~# env | grep GOTTY
GOTTY_ADDRESS=127.0.0.2
GOTTY_PORT=9000
Run and see that configuration is not applied:
root@:~# ./gotty -w /bin/bash
2016/10/12 05:52:01 Permitting clients to write input to the PTY.
2016/10/12 05:52:01 Server is starting with command: /bin/bash
2016/10/12 05:52:01 URL: http://127.0.0.1:8080/
2016/10/12 05:52:01 URL: http://[::1]:8080/
2016/10/12 05:52:01 URL: http://192.168.0.120:8080/
2016/10/12 05:52:01 URL: http://[fe80::20c:29ff:fefd:8ba3]:8080/
But GOTTY_CONFIG is working:
root@:~# export GOTTY_CONFIG=notexists
root@:~# ./gotty -w /bin/bash
stat notexists: no such file or directory
gotty version 0.0.13
Set some environment variables:
Run and see that configuration is not applied:
But GOTTY_CONFIG is working: