mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	plugin/log: log remote port addr as well (#1573)
Log the remote's port, for IPv6 addr this means we should enclose the v6 address in brackets; make this the default for 'remote'.
This commit is contained in:
		| @@ -78,7 +78,7 @@ type Rule struct { | ||||
|  | ||||
| const ( | ||||
| 	// CommonLogFormat is the common log format. | ||||
| 	CommonLogFormat = `{remote} ` + CommonLogEmptyValue + ` [{when}] {>id} "{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {>rflags} {rsize} {duration}` | ||||
| 	CommonLogFormat = `{remote}:{port} ` + CommonLogEmptyValue + ` [{when}] {>id} "{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {>rflags} {rsize} {duration}` | ||||
| 	// CommonLogEmptyValue is the common empty log value. | ||||
| 	CommonLogEmptyValue = "-" | ||||
| 	// CombinedLogFormat is the combined log format. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user