Merge pull request #24 from makotoshimazu/restrict_access_from_outside
Restrict accessing form another machine
This commit is contained in:
commit
a7415a3d07
@ -52,6 +52,11 @@
|
|||||||
:group 'markdown-preview
|
:group 'markdown-preview
|
||||||
:type 'integer)
|
:type 'integer)
|
||||||
|
|
||||||
|
(defcustom markdown-preview-http-host "localhost"
|
||||||
|
"Markdown preview http server address."
|
||||||
|
:group 'markdown-preview
|
||||||
|
:type 'string)
|
||||||
|
|
||||||
(defcustom markdown-preview-http-port 9000
|
(defcustom markdown-preview-http-port 9000
|
||||||
"Markdown preview http server port."
|
"Markdown preview http server port."
|
||||||
:group 'markdown-preview
|
: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-file process filename)
|
||||||
(ws-send-404 process)
|
(ws-send-404 process)
|
||||||
))))))
|
))))))
|
||||||
markdown-preview-http-port)))))
|
markdown-preview-http-port nil :host markdown-preview-http-host)))))
|
||||||
|
|
||||||
(defun markdown-preview--parse-uuid (headers)
|
(defun markdown-preview--parse-uuid (headers)
|
||||||
"Find uuid query param in HEADERS."
|
"Find uuid query param in HEADERS."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user