Index: src/engine/Main.cpp |
=================================================================== |
--- a/src/engine/Main.cpp |
+++ b/src/engine/Main.cpp |
@@ -314,6 +314,21 @@ |
response << filterEngine->GetPref("enabled")->AsBool(); |
break; |
} |
+ case Communication::PROC_GET_HOST: |
+ { |
+ std::string url; |
+ request >> url; |
+ std::string host = filterEngine->GetHostFromURL(url); |
+ if (host.empty()) |
+ { |
+ response << url; |
+ } |
+ else |
+ { |
+ response << host; |
+ } |
+ break; |
+ } |
} |
return response; |
} |