Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

用 import 导入的配置不能连接 #180

Open
hunterMG opened this issue Nov 18, 2018 · 4 comments
Open

用 import 导入的配置不能连接 #180

hunterMG opened this issue Nov 18, 2018 · 4 comments

Comments

@hunterMG
Copy link

用 import 导入的配置不能连接,但是如果使用该配置文件在命令行中启动 v2ray 时是可用的。
配置文件如下(隐藏了部分隐私信息):

{
  "log": {
    "loglevel": "warning",
    "error": "error.log"
  },
  "inbound": {
    "port": 1086,
    "listen": "127.0.0.1",
    "protocol": "socks",
    "settings": {
      "auth": "noauth",
      "udp": true,
      "ip": "127.0.0.1"
    }
  },
  "outbound": {
    "protocol": "vmess",
    "settings": {
      "vnext": [
        {
          "address": "address", 
          "port": 443,          
          "users": [
            {
              "id": "id",
              "alterId": 64,
              "security": "auto",
              "level": 1
            }
          ]
        }
      ]
    },
    "tag": "direct"
  },
  "policy": {
    "levels": {
      "0": {"uplinkOnly": 0}
    }
  }
}
@Chandler-Lu
Copy link
Contributor

Chandler-Lu commented Nov 18, 2018

socks监听端口以软件配置为准,软件默认监听1081端口,而不是你config写的1086

@hunterMG
Copy link
Author

socks监听端口以软件配置为准,软件默认监听1081端口,而不是你config写的1086

谢谢,希望可以改进这一点,更合逻辑。

@Cenmrev
Copy link
Owner

Cenmrev commented Dec 18, 2018

希望可以改进这一点,更合逻辑。

你是在什么模式下发现代理不能用的?
全局模式下,软件会监听自定义配置文件里的接口,但是PAC模式里监听那个端口是由pac文件决定的。

@hunterMG
Copy link
Author

PAC模式。但是我的pac文件中的端口和自定义配置文件中的端口是一样的。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants