mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
fix fd leak
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ func RunClientAPI(ctx context.Context, config *conf.GlobalConfig, auth stat.Auth
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
log.Info("Client api service is running at", config.API.APIAddress)
|
||||
log.Info("Trojan-Go client-side API service is listening on", config.API.APIAddress)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
errChan <- server.Serve(listener)
|
||||
|
||||
+1
-1
@@ -161,7 +161,7 @@ func RunServerAPI(ctx context.Context, config *conf.GlobalConfig, auth stat.Auth
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
log.Info("Server api service is running at", config.API.APIAddress)
|
||||
log.Info("Trojan-Go server-side API service is listening on", config.API.APIAddress)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
errChan <- server.Serve(listener)
|
||||
|
||||
Reference in New Issue
Block a user