XrayInbound.localSocksTunnel constructor

XrayInbound.localSocksTunnel({
  1. String tag = 'in_proxy',
  2. String listen = '127.0.0.1',
  3. int port = 10807,
  4. int userLevel = 8,
})

Implementation

factory XrayInbound.localSocksTunnel({
  String tag = 'in_proxy',
  String listen = '127.0.0.1',
  int port = 10807,
  int userLevel = 8,
}) {
  return XrayInbound(
    tag: tag,
    listen: listen,
    port: port,
    protocol: 'socks',
    settings: {
      'auth': 'noauth',
      'udp': true,
      'userLevel': userLevel,
      'address': null,
      'port': null,
      'network': null,
    },
    sniffing: const XraySniffing(
      enabled: true,
      destOverride: ['http', 'tls', 'quic'],
      metadataOnly: false,
    ),
  );
}