changeset 31027:bfdb0741f9f2

dummyssh: use LOCALIP This patch replaces hard-coded 127.0.0.1 with $LOCALIP in dummyssh.
author Jun Wu <quark@fb.com>
date Wed, 15 Feb 2017 23:24:03 -0800
parents d4916aebf3d0
children 636cf3f7620d
files tests/dummyssh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/dummyssh	Thu Feb 16 08:01:19 2017 -0800
+++ b/tests/dummyssh	Wed Feb 15 23:24:03 2017 -0800
@@ -10,7 +10,7 @@
 if sys.argv[1] != "user@dummy":
     sys.exit(-1)
 
-os.environ["SSH_CLIENT"] = "127.0.0.1 1 2"
+os.environ["SSH_CLIENT"] = "%s 1 2" % os.environ.get('LOCALIP', '127.0.0.1')
 
 log = open("dummylog", "ab")
 log.write("Got arguments")