Commit cc5f69412784d10407fd599c3217012521b48363

Thomas de Grivel 2018-07-03T11:21:34

null host is localhost

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/core/host.lisp b/core/host.lisp
index bb895b5..f22bdd5 100644
--- a/core/host.lisp
+++ b/core/host.lisp
@@ -79,8 +79,9 @@
     (shell-close (host-shell host))
     (slot-makunbound host 'shell)))
 
-(defun host (host)
+(defun host (&optional host)
   (etypecase host
+    (null (localhost))
     (host host)
     (string (if (or (string-equal (local-hostname) host)
                     (string-equal "localhost" host)