func GetLocalAddress(c network.ConnectionStats) (util.Address, uint16) {
	localIP := c.Source
	localPort := c.SPort

	if c.IPTranslation != nil && c.IPTranslation.ReplDstIP != nil {
		// Fields are flipped
		localIP = c.IPTranslation.ReplDstIP
		localPort = c.IPTranslation.ReplDstPort
	}
	return localIP, localPort
}
// GetLocalAddress returns the translated (local ip, local port) pair
GetLocalAddress returns the translated (local ip, local port) pair
// GetLocalAddress returns the translated ( local ip local port ) pair
func GetLocalAddress(c network.ConnectionStats) (util.Address, uint16) {
	localIP := c.Source
	localPort := c.SPort
	if c.IPTranslation != nil && c.IPTranslation.ReplDstIP != nil {
		localIP = c.IPTranslation.ReplDstIP
		localPort = c.IPTranslation.ReplDstPort
	}
	return localIP, localPort
}
func GetLocalAddress ( c network . ConnectionStats ) ( util . Address , uint16 ) { localIP := c . Source localPort := c . SPort if c . IPTranslation != nil && c . IPTranslation . ReplDstIP != nil { localIP = c . IPTranslation . ReplDstIP localPort = c . IPTranslation . ReplDstPort } return localIP , localPort }
GetLocalAddress returns the translated (local ip, local port) pair
GetLocalAddress returns the translated ( local ip local port ) pair
// Fields are flipped