SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
15.38k stars 1.89k forks source link

Domain and subdomain rules #1868

Closed papampi closed 4 days ago

papampi commented 1 week ago

Operating system

Linux

System version

1.9.3

Installation type

Original sing-box Command Line

If you are using a graphical client, please provide the version of the client.

No response

Version

No response

Description

When using domain rules it does not include sub domains, is this intentional or misbehaviour?

For example if we set direct domain rule for domain.com , sub.domain.com wont go direct so we should also add a regex for subdomain ^(.*\.)?domain\.com$ too?

Is this the intentional behavior?

Reproduction

Add domain rule and expect subdomains follow the rule too.

Logs

No response

Supporter

Integrity requirements

BK8000L commented 6 days ago

just use domain_suffix?

papampi commented 6 days ago

just use domain_suffix?

Thanks, I thought domain_suffix is for .ir, .cn, ...