Add Gateway connectivity diagnostics and traffic chart improvements
This commit is contained in:
@@ -27,7 +27,21 @@ test('gateway routes .ru domains directly and other traffic through the selected
|
||||
});
|
||||
|
||||
assert.deepEqual(config.route.rule_set, []);
|
||||
assert.deepEqual(config.inbounds.map((inbound) => inbound.tag), [
|
||||
'tproxy-in',
|
||||
'mixed-in',
|
||||
'diagnostics-vpn-in',
|
||||
]);
|
||||
assert.deepEqual(config.inbounds[2], {
|
||||
type: 'mixed',
|
||||
tag: 'diagnostics-vpn-in',
|
||||
listen: '127.0.0.1',
|
||||
listen_port: 18080,
|
||||
sniff: true,
|
||||
set_system_proxy: false,
|
||||
});
|
||||
assert.deepEqual(config.route.rules, [
|
||||
{ inbound: ['diagnostics-vpn-in'], outbound: 'test-vpn' },
|
||||
{ domain_suffix: ['ru'], outbound: 'direct' },
|
||||
{ inbound: ['tproxy-in'], outbound: 'test-vpn' },
|
||||
{ inbound: ['mixed-in'], outbound: 'test-vpn' },
|
||||
|
||||
Reference in New Issue
Block a user