Reformat code

This commit is contained in:
世界
2026-08-30 17:41:46 +08:00
parent e4ec3b0345
commit ba4146ea31
30 changed files with 65 additions and 55 deletions
+1 -1
View File
@@ -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),
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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(),