@@ -575,9 +575,9 @@ func (n *NDTParser) fixValues(r schema.Web100ValueMap) {
575575 // snapshot addresses are always authoritative. Other sources don't handle
576576 // ipv6 correctly. So, always substitute, unless for some reason the snapshot
577577 // value is missing.
578- logEntry .SubstituteString (false , []string {"connection_spec" , "local_ip" },
578+ logEntry .SubstituteString (true , []string {"connection_spec" , "local_ip" },
579579 []string {"snap" , "LocalAddress" })
580- logEntry .SubstituteString (false , []string {"connection_spec" , "remote_ip" },
580+ logEntry .SubstituteString (true , []string {"connection_spec" , "remote_ip" },
581581 []string {"snap" , "RemAddress" })
582582
583583 // Handle local_af.
@@ -599,13 +599,13 @@ func (n *NDTParser) fixValues(r schema.Web100ValueMap) {
599599 // file is missing, they may be empty. In that case, we replace them
600600 // with values from the log entry, (which usually come from the snapshot.)
601601 // TODO - make these the ONLY representation of client/server tuple.
602- r .SubstituteString (true , []string {"connection_spec" , "server_ip" },
602+ r .SubstituteString (false , []string {"connection_spec" , "server_ip" },
603603 []string {"web100_log_entry" , "connection_spec" , "local_ip" })
604- r .SubstituteInt64 (true , []string {"connection_spec" , "server_af" },
604+ r .SubstituteInt64 (false , []string {"connection_spec" , "server_af" },
605605 []string {"web100_log_entry" , "connection_spec" , "local_af" })
606- r .SubstituteString (true , []string {"connection_spec" , "client_ip" },
606+ r .SubstituteString (false , []string {"connection_spec" , "client_ip" },
607607 []string {"web100_log_entry" , "connection_spec" , "remote_ip" })
608- r .SubstituteInt64 (true , []string {"connection_spec" , "client_af" },
608+ r .SubstituteInt64 (false , []string {"connection_spec" , "client_af" },
609609 []string {"web100_log_entry" , "connection_spec" , "local_af" })
610610
611611 start , ok := snap .GetInt64 ([]string {"StartTimeStamp" })
0 commit comments