mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
fix client api crash
This commit is contained in:
@@ -74,6 +74,9 @@ func RunClientAPI(ctx context.Context, auth statistic.Authenticator) error {
|
||||
Port: cfg.API.APIPort,
|
||||
Zone: addr.Zone,
|
||||
}).String())
|
||||
if err != nil {
|
||||
return common.NewError("client api failed to listen").Base(err)
|
||||
}
|
||||
log.Info("client-side api service is listening on", listener.Addr().String())
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user