Skip to content

Commit

Permalink
Move WithLogger() down.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Sep 23, 2024
1 parent 3af803b commit 030b557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/outline-ss-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ func (s *OutlineServer) runConfig(config Config) (func() error, error) {
ciphers.Update(cipherList)

ssService, err := service.NewShadowsocksService(
service.WithLogger(slog.Default()),
service.WithCiphers(ciphers),
service.WithNatTimeout(s.natTimeout),
service.WithMetrics(s.serviceMetrics),
service.WithReplayCache(&s.replayCache),
service.WithLogger(slog.Default()),
)
ln, err := lnSet.ListenStream(addr)
if err != nil {
Expand All @@ -245,11 +245,11 @@ func (s *OutlineServer) runConfig(config Config) (func() error, error) {
return fmt.Errorf("failed to create cipher list from config: %v", err)
}
ssService, err := service.NewShadowsocksService(
service.WithLogger(slog.Default()),
service.WithCiphers(ciphers),
service.WithNatTimeout(s.natTimeout),
service.WithMetrics(s.serviceMetrics),
service.WithReplayCache(&s.replayCache),
service.WithLogger(slog.Default()),
)
if err != nil {
return err
Expand Down

0 comments on commit 030b557

Please sign in to comment.