Merge pull request #24 from makotoshimazu/restrict_access_from_outside

Restrict accessing form another machine
This commit is contained in:
Igor Shymko 2017-08-20 14:55:34 +03:00 committed by GitHub
commit a7415a3d07
1 changed files with 6 additions and 1 deletions

View File

@ -52,6 +52,11 @@
:group 'markdown-preview
:type 'integer)
(defcustom markdown-preview-http-host "localhost"
"Markdown preview http server address."
:group 'markdown-preview
:type 'string)
(defcustom markdown-preview-http-port 9000
"Markdown preview http server port."
:group 'markdown-preview
@ -176,7 +181,7 @@ rendered copy to PREVIEW-FILE, ready to be open in browser."
(ws-send-file process filename)
(ws-send-404 process)
))))))
markdown-preview-http-port)))))
markdown-preview-http-port nil :host markdown-preview-http-host)))))
(defun markdown-preview--parse-uuid (headers)
"Find uuid query param in HEADERS."