Fix metrics for connections going through SPN
This commit is contained in:
@@ -96,6 +96,7 @@ func checkTunneling(ctx context.Context, conn *network.Connection, pkt packet.Pa
|
||||
}
|
||||
|
||||
// Tunnel all the things!
|
||||
conn.SaveWhenFinished()
|
||||
|
||||
// Check if ready.
|
||||
if !captain.ClientReady() {
|
||||
|
||||
@@ -124,7 +124,7 @@ func (conn *Connection) addToMetrics() {
|
||||
blockedOutConnCounter.Inc()
|
||||
conn.addedToMetrics = true
|
||||
return
|
||||
case VerdictAccept:
|
||||
case VerdictAccept, VerdictRerouteToTunnel:
|
||||
// Continue to next section.
|
||||
default:
|
||||
// Connection is not counted.
|
||||
|
||||
Reference in New Issue
Block a user