github.com/igoogolx/clash@v1.19.8/docs/zh_CN/premium/userspace-wireguard.md (about)

     1  ---
     2  sidebarTitle: "功能: 用户空间 Wireguard"
     3  sidebarOrder: 7
     4  ---
     5  
     6  # 用户空间 Wireguard
     7  
     8  由于依赖 gvisor TCP/IP 栈, 用户空间 Wireguard 目前仅在 Premium 内核中可用.
     9  
    10  ```yaml
    11  proxies:
    12    - name: "wg"
    13      type: wireguard
    14      server: 127.0.0.1
    15      port: 443
    16      ip: 172.16.0.2
    17      # ipv6: your_ipv6
    18      private-key: eCtXsJZ27+4PbhDkHnB923tkUn2Gj59wZw5wFA75MnU=
    19      public-key: Cr8hWlKvtDt7nrvf+f0brNQQzabAqrjfBvas9pmowjo=
    20      # preshared-key: base64
    21      # remote-dns-resolve: true # 远程解析 DNS, 使用 `dns` 字段, 默认为 true
    22      # dns: [1.1.1.1, 8.8.8.8]
    23      # mtu: 1420
    24      udp: true
    25  ```