Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Update build config.
Browse files Browse the repository at this point in the history
  • Loading branch information
AirportR committed Jul 24, 2023
1 parent eec24a4 commit 6e43c9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fulltclash.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,11 @@ func handleTCPConn(connCtx constant.ConnContext, index int) {
proxy, err := adapter.ParseProxy(rawcfgs[index].Proxy)
if err != nil {
fmt.Printf("error: %s \n", err.Error())
return
}
if proxy == nil {
fmt.Println("Null pointer reference. Connection break down!")
return
}
fmt.Printf("request incoming from %s to %s, using %s , index: %d\n", metadata.SourceAddress(), metadata.RemoteAddress(), proxy.Name(), index)
ctx, cancel := context.WithTimeout(context.Background(), constant.DefaultTCPTimeout)
Expand Down

0 comments on commit 6e43c9c

Please sign in to comment.