@@ -312,11 +312,11 @@ function save() {
312
312
dbus[" ssconf_basic_v2ray_headtype_kcp_" + node_sel] = vmess_node .type ;
313
313
}
314
314
dbus[" ss_basic_v2ray_network_host" ] = vmess_node .host ;
315
- // dbus["ss_basic_v2ray_network_tlshost"] = vmess_node.tlshost;
316
- // dbus["ss_basic_v2ray_network_flow"] = vmess_node.flow;
315
+ dbus[" ss_basic_v2ray_network_tlshost" ] = vmess_node .tlshost ;
316
+ dbus[" ss_basic_v2ray_network_flow" ] = vmess_node .flow ;
317
317
dbus[" ssconf_basic_v2ray_network_host_" + node_sel] = vmess_node .host ;
318
- // dbus["ssconf_basic_v2ray_network_tlshost_" + node_sel] = vmess_node.tlshost;
319
- // dbus["ssconf_basic_v2ray_network_flow_" + node_sel] = vmess_node.flow;
318
+ dbus[" ssconf_basic_v2ray_network_tlshost_" + node_sel] = vmess_node .tlshost ;
319
+ dbus[" ssconf_basic_v2ray_network_flow_" + node_sel] = vmess_node .flow ;
320
320
dbus[" ss_basic_v2ray_network_path" ] = vmess_node .path ;
321
321
dbus[" ssconf_basic_v2ray_network_path_" + node_sel] = vmess_node .path ;
322
322
if (vmess_node .tls == " tls" ){
@@ -956,6 +956,9 @@ function protocol_change_on(xy){
956
956
// }else{
957
957
// $("#use_uuid_on").text("用户id(id)")
958
958
// }
959
+ if (xy == " vless" ) {
960
+ E (" ss_basic_v2ray_alterid" ).value = " " ;
961
+ }
959
962
verifyFields ();
960
963
}
961
964
@@ -971,6 +974,9 @@ function protocol_change_off(xy){
971
974
// }else{
972
975
// $("#use_uuid_off").text("用户id(id)")
973
976
// }
977
+ if (xy == " vless" ) {
978
+ E (" ss_node_table_v2ray_alterid" ).value = " " ;
979
+ }
974
980
verifyFields ();
975
981
}
976
982
@@ -992,6 +998,11 @@ function trojan_change_off(xy){
992
998
}else {
993
999
E (" ss_node_table_trojan_binary" ).value = " Trojan" ;
994
1000
}
1001
+ if (xy== " Trojan" ){
1002
+ E (" ss_node_table_v2ray_network_path" ).value = " " ;
1003
+ E (" ss_node_table_v2ray_network_host" ).value = " " ;
1004
+ E (" ss_node_table_fingerprint" ).value = " " ;
1005
+ }
995
1006
verifyFields ();
996
1007
}
997
1008
function network_change_off (xy ){
@@ -1002,6 +1013,22 @@ function network_change_off(xy){
1002
1013
}
1003
1014
verifyFields ();
1004
1015
}
1016
+ function flow_change_off (xy ){
1017
+ if (xy != " tcp" ) {
1018
+ E (" ss_node_table_v2ray_network_flow" ).value = " " ;
1019
+ }else if (xy == " tcp" || xy == " grpc" ) {
1020
+ E (" ss_node_table_v2ray_network_path" ).value = " " ;
1021
+ E (" ss_node_table_v2ray_network_host" ).value = " " ;
1022
+ }
1023
+ verifyFields ();
1024
+ }
1025
+ function reality_change_off (xy ){
1026
+ if (xy != " reality" ) {
1027
+ E (" ss_node_table_xray_publicKey" ).value = " " ;
1028
+ E (" ss_node_table_xray_shortId" ).value = " " ;
1029
+ }
1030
+ verifyFields ();
1031
+ }
1005
1032
1006
1033
function ss_node_sel (s ) {
1007
1034
if (! s){
@@ -1236,8 +1263,8 @@ function Add_profile() { //点击节点页面内添加节点动作
1236
1263
E (" ss_node_table_ss_v2ray_plugin" ).value = " 0"
1237
1264
E (" ss_node_table_ss_v2ray_plugin_opts" ).value = " " ;
1238
1265
E (" ss_node_table_rss_protocol" ).value = " origin" ;
1239
- // E("ss_node_table_naive_protocol").value = "https";
1240
- // E("ss_node_table_naive_user").value = "";
1266
+ E (" ss_node_table_naive_protocol" ).value = " https" ;
1267
+ E (" ss_node_table_naive_user" ).value = " " ;
1241
1268
E (" ss_node_table_rss_protocol_param" ).value = " " ;
1242
1269
E (" ss_node_table_rss_obfs" ).value = " plain" ;
1243
1270
E (" ss_node_table_rss_obfs_param" ).value = " " ;
@@ -1248,7 +1275,10 @@ function Add_profile() { //点击节点页面内添加节点动作
1248
1275
E (" ss_node_table_v2ray_json" ).value = " " ;
1249
1276
E (" ss_node_table_v2ray_serviceName" ).value = " " ;
1250
1277
E (" ss_node_table_v2ray_network_path" ).value = " " ;
1278
+ E (" ss_node_table_v2ray_network_flow" ).value = " " ;
1251
1279
E (" ss_node_table_v2ray_network_tlshost" ).value = " " ;
1280
+ E (" ss_node_table_xray_publicKey" ).value = " " ;
1281
+ E (" ss_node_table_xray_shortId" ).value = " " ;
1252
1282
E (" ss_node_table_trojan_sni" ).value = " " ;
1253
1283
E (" ss_node_table_trojan_binary" ).value = " Trojan" ;
1254
1284
E (" ss_node_table_trojan_network" ).value = " 0" ;
@@ -1703,8 +1733,8 @@ function add_ss_node_conf(flag) { //点击添加按钮动作
1703
1733
ns[p + " _v2ray_headtype_kcp_" + node_global_max] = vmess_node .type ;
1704
1734
}
1705
1735
ns[p + " _v2ray_network_host_" + node_global_max] = vmess_node .host ;
1706
- // ns[p + "_v2ray_network_tlshost_" + node_global_max] = vmess_node.tlshost;
1707
- // ns[p + "_v2ray_network_flow_" + node_global_max] = vmess_node.flow;
1736
+ ns[p + " _v2ray_network_tlshost_" + node_global_max] = vmess_node .tlshost ;
1737
+ ns[p + " _v2ray_network_flow_" + node_global_max] = vmess_node .flow ;
1708
1738
ns[p + " _v2ray_network_path_" + node_global_max] = vmess_node .path ;
1709
1739
if (vmess_node .tls == " tls" ){
1710
1740
ns[p + " _v2ray_network_security_" + node_global_max] = " tls" ;
@@ -1762,8 +1792,8 @@ function add_ss_node_conf(flag) { //点击添加按钮动作
1762
1792
E (" ss_node_table_ss_v2ray_plugin" ).value = " 0"
1763
1793
E (" ss_node_table_ss_v2ray_plugin_opts" ).value = " " ;
1764
1794
E (" ss_node_table_rss_protocol" ).value = " origin" ;
1765
- // E("ss_node_table_naive_protocol").value = "https";
1766
- // E("ss_node_table_naive_user").value = "";
1795
+ E (" ss_node_table_naive_protocol" ).value = " https" ;
1796
+ E (" ss_node_table_naive_user" ).value = " " ;
1767
1797
E (" ss_node_table_rss_protocol_param" ).value = " " ;
1768
1798
E (" ss_node_table_rss_obfs" ).value = " plain" ;
1769
1799
E (" ss_node_table_rss_obfs_param" ).value = " " ;
@@ -1776,10 +1806,13 @@ function add_ss_node_conf(flag) { //点击添加按钮动作
1776
1806
E (" ss_node_table_trojan_binary" ).value = " Trojan" ;
1777
1807
E (" ss_node_table_trojan_network" ).value = " 0" ;
1778
1808
E (" ss_node_table_trojan_sni" ).value = " " ;
1779
- // E("ss_node_table_v2ray_network_tlshost").value = "";
1809
+ E (" ss_node_table_v2ray_network_tlshost" ).value = " " ;
1810
+ E (" ss_node_table_v2ray_network_flow" ).value = " " ;
1780
1811
E (" ss_node_table_allowinsecure" ).value = " 0" ;
1781
1812
E (" ss_node_table_v2ray_mux_enable" ).value = " 0" ;
1782
- E (" ss_node_table_fingerprint" ).value = " " ;
1813
+ E (" ss_node_table_fingerprint" ).value = " " ;
1814
+ E (" ss_node_table_xray_publicKey" ).value = " " ;
1815
+ E (" ss_node_table_xray_shortId" ).value = " " ;
1783
1816
cancel_add_rule ();
1784
1817
}
1785
1818
}
@@ -2077,7 +2110,8 @@ function edit_conf_table(o) { //编辑节点功能,显示编辑面板
2077
2110
xray_change_off (c[" v2ray_xray" ])
2078
2111
trojan_change_off (c[" trojan_binary" ])
2079
2112
network_change_off (c[" trojan_network" ])
2080
-
2113
+ flow_change_off (c[" v2ray_network" ])
2114
+ reality_change_off (c[" v2ray_network_security" ])
2081
2115
E (" cancelBtn" ).style .display = " " ;
2082
2116
E (" add_node" ).style .display = " none" ;
2083
2117
E (" edit_node" ).style .display = " " ;
@@ -2191,8 +2225,8 @@ function edit_ss_node_conf(flag) { //编辑节点功能,数据重写
2191
2225
ns[" ssconf_basic_v2ray_headtype_kcp_" + myid] = vmess_node .type ;
2192
2226
}
2193
2227
ns[" ssconf_basic_v2ray_network_host_" + myid] = vmess_node .host ;
2194
- // ns["ssconf_basic_v2ray_network_tlshost_" + myid] = vmess_node.tlshost;
2195
- // ns["ssconf_basic_v2ray_network_flow_" + myid] = vmess_node.flow;
2228
+ ns[" ssconf_basic_v2ray_network_tlshost_" + myid] = vmess_node .tlshost ;
2229
+ ns[" ssconf_basic_v2ray_network_flow_" + myid] = vmess_node .flow ;
2196
2230
ns[" ssconf_basic_v2ray_network_path_" + myid] = vmess_node .path ;
2197
2231
if (vmess_node .tls == " tls" ){
2198
2232
ns[" ssconf_basic_v2ray_network_security_" + myid] = " tls" ;
@@ -2242,8 +2276,8 @@ function edit_ss_node_conf(flag) { //编辑节点功能,数据重写
2242
2276
E (" ss_node_table_ss_v2ray_plugin" ).value = " 0"
2243
2277
E (" ss_node_table_ss_v2ray_plugin_opts" ).value = " " ;
2244
2278
E (" ss_node_table_rss_protocol" ).value = " origin" ;
2245
- // E("ss_node_table_naive_protocol").value = "https";
2246
- // E("ss_node_table_naive_user").value = "";
2279
+ E (" ss_node_table_naive_protocol" ).value = " https" ;
2280
+ E (" ss_node_table_naive_user" ).value = " " ;
2247
2281
E (" ss_node_table_rss_protocol_param" ).value = " " ;
2248
2282
E (" ss_node_table_rss_obfs" ).value = " plain" ;
2249
2283
E (" ss_node_table_rss_obfs_param" ).value = " " ;
@@ -2257,9 +2291,12 @@ function edit_ss_node_conf(flag) { //编辑节点功能,数据重写
2257
2291
E (" ss_node_table_trojan_network" ).value = " 0" ;
2258
2292
E (" ss_node_table_trojan_sni" ).value = " " ;
2259
2293
E (" ss_node_table_fingerprint" ).value = " " ;
2260
- E (" ss_node_table_v2ray_network_tlshost" ).value = " " ;
2294
+ E (" ss_node_table_v2ray_network_tlshost" ).value = " " ;
2295
+ E (" ss_node_table_v2ray_network_flow" ).value = " " ;
2261
2296
E (" ss_node_table_allowinsecure" ).value = " 0" ;
2262
2297
E (" ss_node_table_v2ray_mux_enable" ).value = " 0" ;
2298
+ E (" ss_node_table_xray_publicKey" ).value = " " ;
2299
+ E (" ss_node_table_xray_shortId" ).value = " " ;
2263
2300
}
2264
2301
});
2265
2302
updateSs_node_listView ();
@@ -3922,7 +3959,7 @@ function set_cron(action) {
3922
3959
<tr id =" v2ray_network_tr" style =" display : none ;" >
3923
3960
<th width =" 35%" >传输协议 (network)</th >
3924
3961
<td >
3925
- <select id =" ss_node_table_v2ray_network" name =" ss_node_table_v2ray_network" style =" width :350px ;margin :0px 0px 0px 2px ;" class =" input_option" onchange =" verifyFields (this, 1 );" >
3962
+ <select id =" ss_node_table_v2ray_network" name =" ss_node_table_v2ray_network" style =" width :350px ;margin :0px 0px 0px 2px ;" class =" input_option" onchange =" flow_change_off (this.value );" >
3926
3963
<option value =" tcp" >tcp</option >
3927
3964
<option value =" kcp" >kcp</option >
3928
3965
<option value =" ws" >ws</option >
@@ -3972,7 +4009,7 @@ function set_cron(action) {
3972
4009
<tr id =" v2ray_network_security_tr" style =" display : none ;" >
3973
4010
<th width =" 35%" >底层传输安全</th >
3974
4011
<td >
3975
- <select id =" ss_node_table_v2ray_network_security" name =" ss_node_table_v2ray_network_security" onchange =" verifyFields (this, 1 );" style =" width :350px ;margin :0px 0px 0px 2px ;" class =" input_option" >
4012
+ <select id =" ss_node_table_v2ray_network_security" name =" ss_node_table_v2ray_network_security" onchange =" reality_change_off (this.value );" style =" width :350px ;margin :0px 0px 0px 2px ;" class =" input_option" >
3976
4013
<option value =" none" >关闭</option >
3977
4014
<option value =" tls" >tls</option >
3978
4015
<option value =" xtls" >xtls</option >
0 commit comments