documentation: Add USB/IP server and client

This commit is contained in:
世界
2026-08-30 17:41:41 +08:00
parent 16f2a39298
commit d43170b00a
15 changed files with 337 additions and 7 deletions
+1 -2
View File
@@ -13,7 +13,6 @@ import (
"github.com/sagernet/sing-box/option"
"github.com/sagernet/sing-usbip"
E "github.com/sagernet/sing/common/exceptions"
M "github.com/sagernet/sing/common/metadata"
)
type ClientService struct {
@@ -37,7 +36,7 @@ func NewClientService(ctx context.Context, logger log.ContextLogger, tag string,
inner, err := usbip.NewClientService(ctx, usbip.ClientOptions{
Logger: logger,
Dialer: serviceDialer,
ServerAddress: M.ParseSocksaddr(options.Server),
ServerAddress: options.ServerOptions.Build(),
Devices: toDeviceMatches(options.Devices),
})
if err != nil {