From 2b85ffac490a3adc990f5cb02cbb7c6226b5276f Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Fri, 20 Jan 2023 14:23:26 -0600 Subject: [PATCH] Generalizing IP curl --- RavenCommand.csharp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RavenCommand.csharp b/RavenCommand.csharp index cb40fa4..ae14992 100644 --- a/RavenCommand.csharp +++ b/RavenCommand.csharp @@ -127,7 +127,7 @@ namespace AniNIX.TheRaven { connection.Write(send); return; case "r.ip": - send.PrivMsg(ExecuteCommand.Run("curl -s 10.0.1.1:80 | grep \"WAN IP\" | cut -f 7 -d \">\" | cut -f 1 -d \"<\""),(incoming.target.Equals(theRaven.Nick))?incoming.user:incoming.target); + send.PrivMsg(ExecuteCommand.Run("curl -s $(ip r list | grep default | cut -f 3 -d \" \"):80 | grep \"WAN IP\" | cut -f 13 -d \">\" | cut -f 1 -d \"<\""),(incoming.target.Equals(theRaven.Nick))?incoming.user:incoming.target); connection.Write(send); return; case "r.searches":