mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-26 21:16:56 +00:00
Reformat code
This commit is contained in:
@@ -59,7 +59,7 @@ func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLo
|
||||
|
||||
service, err := anytls.NewService(anytls.ServiceConfig{
|
||||
Users: common.Map(options.Users, func(it option.AnyTLSUser) anytls.User {
|
||||
return (anytls.User)(it)
|
||||
return anytls.User(it)
|
||||
}),
|
||||
PaddingScheme: paddingScheme,
|
||||
Handler: (*inboundHandler)(inbound),
|
||||
|
||||
@@ -100,7 +100,7 @@ func (h *Outbound) Start(stage adapter.StartStage) error {
|
||||
h.client = client
|
||||
h.sessionClient = sessionClientOf(client)
|
||||
h.uotClient = &uot.Client{
|
||||
Dialer: (anytlsDialer)(h.createProxy),
|
||||
Dialer: anytlsDialer(h.createProxy),
|
||||
Version: uot.Version,
|
||||
}
|
||||
return nil
|
||||
|
||||
@@ -71,7 +71,7 @@ func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLo
|
||||
Version: options.Version,
|
||||
Password: options.Password,
|
||||
Users: common.Map(options.Users, func(it option.ShadowTLSUser) shadowtls.User {
|
||||
return (shadowtls.User)(it)
|
||||
return shadowtls.User(it)
|
||||
}),
|
||||
Handshake: shadowtls.HandshakeConfig{
|
||||
Server: options.Handshake.ServerOptions.Build(),
|
||||
|
||||
Reference in New Issue
Block a user