mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-07 14:49:59 +00:00
documentation: Add USB/IP server and client
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user