##// END OF EJS Templates
better warning on non-local controller without ssh...
MinRK -
Show More
@@ -326,11 +326,11 b' class Client(HasTraits):'
326 if location is not None:
326 if location is not None:
327 proto,addr,port = util.split_url(url)
327 proto,addr,port = util.split_url(url)
328 if addr == '127.0.0.1' and location not in LOCAL_IPS and not sshserver:
328 if addr == '127.0.0.1' and location not in LOCAL_IPS and not sshserver:
329 sshserver = location
329 warnings.warn("""
330 warnings.warn(
330 Controller appears to be listening on localhost, but not on this machine.
331 "Controller appears to be listening on localhost, but is not local. "
331 If this is true, you should specify Client(...,sshserver='you@%s')
332 "IPython will try to use SSH tunnels to %s"%location,
332 or instruct your controller to listen on an external IP."""%location,
333 RuntimeWarning)
333 RuntimeWarning)
334
334
335 self._config = cfg
335 self._config = cfg
336
336
General Comments 0
You need to be logged in to leave comments. Login now