Author:   Lars Michelsen <[email protected]>
Date:     Sun May 13 11:19:58 2012 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sun May 13 11:19:58 2012 +0200

Setting NagVis user agent to handle different nagvis verions correctly in 
webservice

---

 share/server/core/sources/geomap.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/share/server/core/sources/geomap.php 
b/share/server/core/sources/geomap.php
index f2300f0..433994f 100644
--- a/share/server/core/sources/geomap.php
+++ b/share/server/core/sources/geomap.php
@@ -27,7 +27,8 @@ function geomap_get_contents($url) {
     try {
         $opts = array(
             'http' => array(
-                'timeout' => cfg('global', 'http_timeout'),
+                'timeout'    => cfg('global', 'http_timeout'),
+                'user_agent' => 'NagVis '.CONST_VERSION.' geomap',
             )
         );
 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to