-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: MultiFile Multi inbound issue #2606
Comments
@yuhan6665 I think we should revert changes #2655 and #2659 because the behaviour in the issue is expected. The logic is inherited from V2Ray, so these are breaking changes. |
Furthermore, there are bugs when the tag is empty. For example, if there are two config files: {
"log": {
"loglevel": "info"
}
} {
"inbounds": [
{
"port": 10000,
"protocol": "socks"
},
{
"port": 10001,
"protocol": "socks"
}
]
} Only the port func (c *Config) findInboundTag(tag string) int {
found := -1
// Maybe we should add the following code.
// if tag == "" {
// return found
// }
for idx, ib := range c.InboundConfigs {
if ib.Tag == tag {
found = idx
break
}
}
return found
} |
@BioniCosmos I think override behavior is ok. Please discuss with @hossinasaadi as well |
@BioniCosmos in your inbound file : {
"inbounds": [
{
"port": 10000,
"protocol": "socks"
},
{
"port": 10001,
"protocol": "socks"
}
]
}
two inbound tag names assigned as "" so the first one port will replaced with second inbound. |
@hossinasaadi |
When we have multifile configuration with multi inbound, files with multiple inbounds will be ignored.
example:
x.json:
y.json:
z.json:
The Problem
Inbounds of y.json override the inbounds in xray so inbounds in x.json will be ignored.
I have tried to do pull request but i could not identify the source of the issue.
logs:
The text was updated successfully, but these errors were encountered: