srijeet0406 commented on a change in pull request #5492:
URL: https://github.com/apache/trafficcontrol/pull/5492#discussion_r570351173
##########
File path: traffic_monitor/towrap/towrap.go
##########
@@ -352,7 +354,9 @@ func (s TrafficOpsSessionThreadsafe) CRConfigRaw(cdn
string) ([]byte, error) {
b, reqInf, e := ss.GetCRConfig(cdn)
err = e
data = b
- remoteAddr = reqInf.RemoteAddr.String()
+ if reqInf.RemoteAddr != nil {
+ remoteAddr = reqInf.RemoteAddr.String()
Review comment:
Well, `remoteAddr` is a string, so it cannot be `nil`. It will default
to an empty string if no value is provided.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]