釘釘內網穿透windows啟動命令


1、下載釘釘程序文件

clone  git倉庫執行命令:git clone https://github.com/open-dingtalk/pierced.git 

2、進入到相應的電腦系統路徑 蘋果的進入mac windows的進入 windows64

使用cmd 進入路徑 輸入命令即可

Mac:

1   cd mac_64

2   ./ding -config=./ding.cfg -subdomain=daheng 8080 生成地址(http://daheng.vaiwan.com)對應(127.0.0.1:8080)

 

 

Windows

 

 

 

 

1  cd windows_64

2  ding -config=ding.cfg -subdomain=daheng 8080 生成地址(http://daheng.vaiwan.com)對應(127.0.0.1:8080)

 

附上VUE內網穿透時修改

 

問題:使用花生殼內網穿透只返回304,invalid host header

 

原因:新版的webpack-dev-server出於安全考慮,默認檢查hostname,如果hostname不是配置內的,將中斷訪問。

 

解決:找到配置文件添加配置 disableHostCheck: true,

例如我的在vue.config文件

 

 

 

 記得重啟服務


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM