我正在使用節點包http-server在本地爲我的網頁提供服務。突然間它開始無法連接到代理服務器。在stackoverflow中搜索,但沒有得到滿意的答案這種情況。請幫忙。節點http-server在使用代理時異常停止錯誤:連接EHOSTUNREACH
下面是命令和日誌:發現問題
http-server -p 8000 app/ --proxy localhost:3000 Starting up http-server, serving app/ Available on: http:127.0.0.1:8000 http:192.168.1.6:8000 Unhandled requests will be served from: localhost:3000 Hit CTRL-C to stop the server
[Mon, 04 Jul 2016 13:29:27 GMT] "POST /candidates/resumes" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" /Users/tushar/.node_modules_global/lib/node_modules/http-server/node_modules/http-proxy/lib/http-proxy/index.js:119 throw err; ^
Error: connect EHOSTUNREACH 0.0.11.184:80 - Local (192.168.1.6:58636) at Object.exports._errnoException (util.js:870:11) at exports._exceptionWithHostPort (util.js:893:20) at connect (net.js:843:14) at net.js:985:7 at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)