Add set system proxy support for macOS

This commit is contained in:
世界
2022-08-04 22:01:20 +08:00
parent 64dbac8138
commit f691bd5ce1
21 changed files with 225 additions and 174 deletions

1
box.go
View File

@@ -90,6 +90,7 @@ func New(ctx context.Context, options option.Options) (*Box, error) {
logFactory.NewLogger("dns"),
common.PtrValueOrDefault(options.Route),
common.PtrValueOrDefault(options.DNS),
options.Inbounds,
)
if err != nil {
return nil, E.Cause(err, "parse route options")