|
@@ -304,7 +304,7 @@ func readSeedMessage(
|
|
|
errStr := "duplicate obfuscation seed"
|
|
errStr := "duplicate obfuscation seed"
|
|
|
if duplicateLogFields != nil {
|
|
if duplicateLogFields != nil {
|
|
|
if config.IrregularLogger != nil {
|
|
if config.IrregularLogger != nil {
|
|
|
- setIrregularTunnelErrorLogField(
|
|
|
|
|
|
|
+ common.SetIrregularTunnelErrorLogField(
|
|
|
*duplicateLogFields, errors.BackTraceNew(errBackTrace, errStr))
|
|
*duplicateLogFields, errors.BackTraceNew(errBackTrace, errStr))
|
|
|
config.IrregularLogger(clientIP, *duplicateLogFields)
|
|
config.IrregularLogger(clientIP, *duplicateLogFields)
|
|
|
}
|
|
}
|
|
@@ -357,7 +357,7 @@ func readSeedMessage(
|
|
|
if errStr != "" {
|
|
if errStr != "" {
|
|
|
if config.IrregularLogger != nil {
|
|
if config.IrregularLogger != nil {
|
|
|
errLogFields := make(common.LogFields)
|
|
errLogFields := make(common.LogFields)
|
|
|
- setIrregularTunnelErrorLogField(
|
|
|
|
|
|
|
+ common.SetIrregularTunnelErrorLogField(
|
|
|
errLogFields, errors.BackTraceNew(errBackTrace, errStr))
|
|
errLogFields, errors.BackTraceNew(errBackTrace, errStr))
|
|
|
config.IrregularLogger(clientIP, errLogFields)
|
|
config.IrregularLogger(clientIP, errLogFields)
|
|
|
}
|
|
}
|
|
@@ -393,9 +393,3 @@ func readSeedMessage(
|
|
|
|
|
|
|
|
return clientToServerCipher, serverToClientCipher, paddingPRNGSeed, nil
|
|
return clientToServerCipher, serverToClientCipher, paddingPRNGSeed, nil
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-func setIrregularTunnelErrorLogField(
|
|
|
|
|
- logFields common.LogFields, tunnelError error) {
|
|
|
|
|
-
|
|
|
|
|
- logFields["tunnel_error"] = tunnelError
|
|
|
|
|
-}
|
|
|