v2ray-core icon indicating copy to clipboard operation
v2ray-core copied to clipboard

Support "services" root config in cfgv4

Open Vigilans opened this issue 9 months ago • 1 comments

This allows tun to be configured in v4cfg:

  "services": {
    "tun": {
      "name": "tun0",
      "mtu": 1500,
      "tag": "tun",
      "ips": [{ "ip": [198, 18, 0, 0], "prefix": 15 }],
      "routes": [
         { "ip": [0, 0, 0, 0], "prefix": 0 }
         // , { "ip": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "prefix": 0 }
      ],
      "enablePromiscuousMode": true,
      "enableSpoofing": true
    }
  }

Fixes https://github.com/v2fly/v2ray-core/pull/2541#issuecomment-2076989572

Vigilans avatar May 07 '24 16:05 Vigilans

Great, thanks!

Losalado avatar May 09 '24 05:05 Losalado

I think this merge request is ready to be merged. A merge request for its document is welcomed! To process merge request faster, documentation task will no longer be a release blocker.

xiaokangwang avatar Aug 19 '24 19:08 xiaokangwang

It works in my device now. Many thanks for your job.

Losalado avatar Aug 31 '24 12:08 Losalado