RPRX 2024-04-21 19:43:27 +00:00 committed by GitHub
parent b356b35312
commit 080bd8241c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -206,6 +206,9 @@ func UClient(c net.Conn, config *Config, ctx context.Context, dest net.Destinati
req, _ = http.NewRequest("GET", string(prefix)+getPathLocked(paths), nil) req, _ = http.NewRequest("GET", string(prefix)+getPathLocked(paths), nil)
maps.Unlock() maps.Unlock()
} }
if req == nil {
return
}
req.Header.Set("User-Agent", fingerprint.Client) // TODO: User-Agent map req.Header.Set("User-Agent", fingerprint.Client) // TODO: User-Agent map
if first && config.Show { if first && config.Show {
newError(fmt.Sprintf("REALITY localAddr: %v\treq.UserAgent(): %v\n", localAddr, req.UserAgent())).WriteToLog(session.ExportIDToError(ctx)) newError(fmt.Sprintf("REALITY localAddr: %v\treq.UserAgent(): %v\n", localAddr, req.UserAgent())).WriteToLog(session.ExportIDToError(ctx))