Closed Kyo628 closed 4 years ago
例: (加粗部分) { "remote_addr" : "xxxxxxxxx", "remote_port" : 443, "password" : [ "xxxxxxxxx" ], "log_level" : 2, "ssl" : { "verify" : true, "verify_hostname" : true, "cipher" : "", "cipher_tls13" : "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384", "cert" : "", "alpn" : [ "h2" ], "curves" : "", "sni" : "", "reuse_session" : true, "session_ticket" : false }, "local_addr" : "127.0.0.1", "run_type" : "client", "tcp" : { "no_delay" : true, "fast_open" : false, "fast_open_qlen" : 20, "keep_alive" : true, "reuse_port" : false }, "local_port" : 1080 }
please see here. The client will fresh the config every time an event happens. Try chmod 444 trojan.json to avoid writing the new config.
chmod 444 trojan.json
THX~!
例: (加粗部分) { "remote_addr" : "xxxxxxxxx", "remote_port" : 443, "password" : [ "xxxxxxxxx" ], "log_level" : 2, "ssl" : { "verify" : true, "verify_hostname" : true, "cipher" : "", "cipher_tls13" : "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384", "cert" : "", "alpn" : [ "h2" ], "curves" : "", "sni" : "", "reuse_session" : true, "session_ticket" : false }, "local_addr" : "127.0.0.1", "run_type" : "client", "tcp" : { "no_delay" : true, "fast_open" : false, "fast_open_qlen" : 20, "keep_alive" : true, "reuse_port" : false }, "local_port" : 1080 }