Replies: 3 comments 8 replies
-
没看出什么问题,有监听 HTTP 的日志输出就应该 可以 |
Beta Was this translation helpful? Give feedback.
0 replies
-
用conf 配置,输出 tun inbound started,用json 没有输出这条日志,是不是这个函数哪里出错了,json 里面tun-fd = REPLACE-ME-WITH-THE-FD这个 fd需要配置吗? |
Beta Was this translation helpful? Give feedback.
8 replies
-
我也有此问题、由于连接账号密码和规则都需要动态配置、考虑到使用json这种格式、否则字符串直接的拼接需要遵循严格的排版比较容易出错 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我的json 内容如下
let conf = """
{
"log": {
"level": "trace"
},
"dns": {
"servers": [
"223.5.5.5",
"8.8.8.8"
]
},
"inbounds": [
{
"address": "127.0.0.1",
"port": 1087,
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "direct",
"tag": "direct_out"
},
{
"protocol": "vmess",
"settings": {
"address": "30.43.120.182",
"port": 30005,
"uuid": "e02431b6-9e5a-11eb-a8b3-0242ac130003"
},
"tag": "vmess"
},
{
"protocol": "shadowsocks",
"settings": {
"address": "30.43.120.182",
"method": "aes-256-gcm",
"password": "123456",
"port": 30001
},
"tag": "shadowsocks_out"
},
{
"protocol": "drop",
"tag": "drop_out"
}
}
然后在将 代码 改成如下
let url = FileManager().containerURL(forSecurityApplicationGroupIdentifier: appGroup)!.appendingPathComponent("running_config.json")
控制台输出 [INFO] inbound listening tcp 127.0.0.1:1087
请问下json内容对吗?
同样的配置用conf 是可以的。
Beta Was this translation helpful? Give feedback.
All reactions