File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
6011 - Ping error
7
7
6012 - Get public IP error
8
+ 6013 - Public IP address change (warning)
9
+ 6014 - Local IP address change (warning)
8
10
9
11
6021 - Update check failed
10
12
6022 - Update failed
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public static string GetLocalIPAddress()
83
83
string oldLocalIP = modDatabase . GetConfig ( "Ping_LastKnownLocalIP" ) ;
84
84
if ( oldLocalIP != newLocalIP )
85
85
{
86
- modLogging . LogEvent ( "Local IP address changed from " + oldLocalIP + " to " + newLocalIP , EventLogEntryType . Warning ) ;
86
+ modLogging . LogEvent ( "Local IP address changed from " + oldLocalIP + " to " + newLocalIP , EventLogEntryType . Warning , 6014 ) ;
87
87
modDatabase . AddOrUpdateConfig ( new modDatabase . Config { Key = "Ping_LastKnownLocalIP" , Value = newLocalIP } ) ;
88
88
}
89
89
@@ -119,7 +119,7 @@ public static string GetPublicIPAddress()
119
119
string oldPublicIP = modDatabase . GetConfig ( "Ping_LastKnownPublicIP" ) ;
120
120
if ( oldPublicIP != newPublicIP )
121
121
{
122
- modLogging . LogEvent ( "Public IP address changed from " + oldPublicIP + " to " + newPublicIP , EventLogEntryType . Warning ) ;
122
+ modLogging . LogEvent ( "Public IP address changed from " + oldPublicIP + " to " + newPublicIP , EventLogEntryType . Warning , 6013 ) ;
123
123
modDatabase . AddOrUpdateConfig ( new modDatabase . Config { Key = "Ping_LastKnownPublicIP" , Value = newPublicIP } ) ;
124
124
}
125
125
You can’t perform that action at this time.
0 commit comments