/etc/trojan/config.json
{
“run_type”: “server”,
“local_addr”: “192.168.0.1”,
“local_port”: 443,
“remote_addr”: “127.0.0.1”,
“remote_port”: 443,
…}
local_addr这里可以改为 :: 表示任意地址
nginx配置
server {
server_name softs.im;
listen 127.0.0.1:443 default_server;
因为在worpress里有 wp-includes/load.php
function is_ssl() {
}
判断是否支持ssl
如果端口监听在443, 就认为是ssl