mirror of
				https://github.com/Mabbs/mabbs.github.io
				synced 2025-10-31 23:25:00 +08:00 
			
		
		
		
	Update 2022-01-16-wssocks.md
This commit is contained in:
		| @@ -18,6 +18,10 @@ tags: [wssocks, 代理, 评测] | |||||||
|   wssocks的使用非常简单,服务端的话我用的是以下命令: |   wssocks的使用非常简单,服务端的话我用的是以下命令: | ||||||
| ``` | ``` | ||||||
| ./wssocks-linux-amd64 server --addr :10000 --auth --auth_key <YOUR_CONNECTION_KEY> --ws_base_path <YOUR_BASE_PATH> | ./wssocks-linux-amd64 server --addr :10000 --auth --auth_key <YOUR_CONNECTION_KEY> --ws_base_path <YOUR_BASE_PATH> | ||||||
|  | ``` | ||||||
|  |   另外在服务器上为了安全起见,最好不要用root权限启动(毕竟是冷门的项目有可能会有未知的漏洞),所以我实际会用以下命令:    | ||||||
|  | ``` | ||||||
|  | chroot --userspec=99:99 / /wssocks-linux-amd64 server --addr :10000 --auth --auth_key <YOUR_CONNECTION_KEY> --ws_base_path <YOUR_BASE_PATH> | ||||||
| ``` | ``` | ||||||
|   为了方便使用Cloudflare(其实主要是我这服务器还有别的网站),所以配置了一下Nginx(参见[wssocks#11](https://github.com/genshen/wssocks/issues/11#issuecomment-669324542)): |   为了方便使用Cloudflare(其实主要是我这服务器还有别的网站),所以配置了一下Nginx(参见[wssocks#11](https://github.com/genshen/wssocks/issues/11#issuecomment-669324542)): | ||||||
| ``` | ``` | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user