HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.
It is currently 22 Jun 2014 09:52

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Hostname too long
PostPosted: 26 Sep 2007 15:10 
Offline

Joined: 06 Mar 2006 23:39
Posts: 24
Hello,

When I want to connect on

http://voip-pabx-t0-ipbx-numeris-rnis-s ... fault.aspx


I have an error generated by HAVP: Hostname too long.


Why? And How can I fixe this problem?

Thanks

Anthony


Top
 Profile  
 
 Post subject:
PostPosted: 26 Sep 2007 17:25 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
It's just some old sanity check, I wonder if anyone really uses that long hostnames. You can change it from connectiontobrowser.cpp:

--- connectiontobrowser.cpp 1 Sep 2007 08:00:33 -0000 1.60
+++ connectiontobrowser.cpp 26 Sep 2007 14:24:40 -0000
@@ -333,7 +333,7 @@
{
Host = HostwithPort.substr( 0, PositionPort );

- if ( Host.length() > 67 )
+ if ( Host.length() > 256 )
{
return -210;
}
@@ -385,7 +385,7 @@
{
Host = HostwithPort.substr( 0, Begin );

- if (Host.length() > 67)
+ if (Host.length() > 256)
{
return -210;
}
@@ -562,7 +562,7 @@
}

//Sanity check - TODO: Config variable for allowed ports?
- if ( Host.length() > 73 )
+ if ( Host.length() > 256 )
{
return -210;
}


Top
 Profile  
 
 Post subject:
PostPosted: 26 Sep 2007 17:37 
Offline

Joined: 06 Mar 2006 23:39
Posts: 24
Yes, It works fine.

Thanks

Anthony


Top
 Profile  
 
 Post subject:
PostPosted: 22 Oct 2007 10:46 
Offline

Joined: 22 Oct 2007 10:33
Posts: 4
Hello,

I have exactely the same problem for an other url.

I change connectiontobrowser.cpp like you write.

But i have the problem again.

For new parameter,
"service havp restart" is sufficient ?



Thanks you

Mevla


Top
 Profile  
 
 Post subject:
PostPosted: 22 Oct 2007 10:47 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
mevla wrote:
Hello,

I have exactely the same problem for an other url.

I change connectiontobrowser.cpp like you write.

But i have the problem again.

For new parameter,
"service havp restart" is sufficient ?


No, you naturally have to compile HAVP, since you changed the source code.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group