-def cnl(host, port = -1, useauthless = True, **kw):
- mustconnect(host, port)
+def cnl(host = None, port = -1, useauthless = True, **kw):
+ if host is None:
+ host = os.getenv("DCSERVER")
+ if host is None:
+ raise ValueError, "No DC host to connect to"
+ fd = mustconnect(host, port)