change md

This commit is contained in:
刘河
2019-12-13 00:00:12 +08:00
parent 8a28d243df
commit 73d6c1dc1c
21 changed files with 972 additions and 946 deletions

36
docs/npc_extend.md Normal file
View File

@@ -0,0 +1,36 @@
# nat类型检测
```
./npc nat
```
如果p2p双方都是Symmetric Nat肯定不能成功其他组合都有较大成功率。
# 状态检查
```
./npc status -config=npc配置文件路径
```
# 重载配置文件
```
./npc restart -config=npc配置文件路径
```
# 通过代理连接nps
有时候运行npc的内网机器无法直接访问外网此时可以可以通过socks5代理连接nps
对于配置文件方式启动,设置
```ini
[common]
proxy_url=socks5://111:222@127.0.0.1:8024
```
对于无配置文件模式,加上参数
```
-proxy=socks5://111:222@127.0.0.1:8024
```
支持socks5和http两种模式
即socks5://username:password@ip:port
或http://username:password@ip:port
# 群晖支持
可在releases中下载spk群晖套件例如`npc_x64-6.1_0.19.0-1.spk`