Is this a bug?

lidonghai at adtsec.com lidonghai at adtsec.com
Wed Dec 7 23:33:48 PST 2016


hi guys, I found wanproxy recently, and I try to make it running,but the configuration on the official webpage confused me a lot.
according to the website[http://wanproxy.org/examples.shtml && https://github.com/diegows/wanproxy/wiki/Configuration], 
both of them showed that like this:
clientcreate proxy proxy0
set proxy0.interface if0
set proxy0.interface_codec None
set proxy0.peer peer0
set proxy0.peer_codec codec0 
activate proxy0
server
create proxy proxy0
set proxy0.interface if0
set proxy0.interface_codec codec0
set proxy0.peer peer0
set proxy0.peer_codec None
activate proxy0
but when I started the programe, and run iperf[upload data] on the server side, it gave error:

wanproxy showed this:
1481182764.863249 [/wanproxy] INFO: All rights reserved.
1481182764.863324 [/wanproxy/config] INFO: Configuring WANProxy.
1481182764.863883 [/io/system] INFO: Starting IO system.
1481182764.863991 [/wanproxy/proxy/proxy0/listener] INFO: Listening on: [0.0.0.0]:2016
1481182764.864026 [/event/thread] INFO: Starting event thread.
1481182764.864239 [/wanproxy/proxy/proxy1/listener] INFO: Listening on: [0.0.0.0]:2018
1481182826.467252 [/zlib/inflate_pipe] ERR: virtual void InflatePipe::consume(Buffer*): inflate(): data error
1481182826.467342 [/wanproxy/proxy/proxy1/connector] ERR: void ProxyConnector::splice_complete(Event): Unexpected event: <Error>/0 [Success]

when I exchange the configuration like this:
clientcreate proxy proxy0
set proxy0.interface if0
set proxy0.interface_codec codec0
set proxy0.peer peer0
set proxy0.peer_codec None
activate proxy0
server
create proxy proxy0
set proxy0.interface if0
set proxy0.interface_codec None
set proxy0.peer peer0
set proxy0.peer_codec codec0
activate proxy0
it worked as expected.
so, could anyone tell me why this happened?
or the configuration on the websites is wrong? 
Thanks in advance.



yours sincerely.


lidonghai at adtsec.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wanproxy.org/pipermail/wanproxy-wanproxy.org/attachments/20161208/d7b8b9a5/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 27884 bytes
Desc: not available
URL: <http://lists.wanproxy.org/pipermail/wanproxy-wanproxy.org/attachments/20161208/d7b8b9a5/attachment-0002.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 22199 bytes
Desc: not available
URL: <http://lists.wanproxy.org/pipermail/wanproxy-wanproxy.org/attachments/20161208/d7b8b9a5/attachment-0003.jpeg>


More information about the wanproxy mailing list