Permalink
Browse files

Change default httpd-host to 0.0.0.0

Emacs 26 doesn't bind to 0.0.0.0 by default.
  • Loading branch information...
skeeto committed Jun 15, 2018
1 parent b6443d6 commit 040e5695efc23150913d4e347103b2050fffab6e
Showing with 10 additions and 10 deletions.
  1. +10 −10 init.el
View
20 init.el
@@ -260,16 +260,16 @@
:defer t
:functions httpd-send-header
:config
- (progn
- (defservlet uptime "text/plain" ()
- (princ (emacs-uptime)))
- (defun httpd-here ()
- (interactive)
- (setf httpd-root default-directory))
- (defadvice httpd-start (after httpd-query-on-exit-flag activate)
- (let ((httpd-process (get-process "httpd")))
- (when httpd-process
- (set-process-query-on-exit-flag httpd-process nil))))))
+ (defservlet uptime "text/plain" ()
+ (princ (emacs-uptime)))
+ (defun httpd-here ()
+ (interactive)
+ (setf httpd-root default-directory))
+ (defadvice httpd-start (after httpd-query-on-exit-flag activate)
+ (let ((httpd-process (get-process "httpd")))
+ (when httpd-process
+ (set-process-query-on-exit-flag httpd-process nil))))
+ (setf httpd-host "0.0.0.0"))
(use-package js2-mode
:defer t

0 comments on commit 040e569

Please sign in to comment.