Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

tun2socks: Implement support for HTTP proxies #107

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions blog_channels.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,4 @@ BLockReactor 4
ncd_load_module 4
ncd_basic_functions 4
ncd_objref 4
BHttpProxyClient 4
4 changes: 4 additions & 0 deletions generated/blog_channel_BHttpProxyClient.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ifdef BLOG_CURRENT_CHANNEL
#undef BLOG_CURRENT_CHANNEL
#endif
#define BLOG_CURRENT_CHANNEL BLOG_CHANNEL_BHttpProxyClient
3 changes: 2 additions & 1 deletion generated/blog_channels_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,5 @@
#define BLOG_CHANNEL_ncd_load_module 145
#define BLOG_CHANNEL_ncd_basic_functions 146
#define BLOG_CHANNEL_ncd_objref 147
#define BLOG_NUM_CHANNELS 148
#define BLOG_CHANNEL_BHttpProxyClient 148
#define BLOG_NUM_CHANNELS 149
1 change: 1 addition & 0 deletions generated/blog_channels_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,4 @@
{"ncd_load_module", 4},
{"ncd_basic_functions", 4},
{"ncd_objref", 4},
{"BHttpProxyClient", 4},
5 changes: 3 additions & 2 deletions system/BAddr.h
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,9 @@ void BAddr_Print (BAddr *addr, char *out)
break;
case BADDR_TYPE_IPV6:
BIPAddr_InitIPv6(&ipaddr, addr->ipv6.ip);
BIPAddr_Print(&ipaddr, out);
sprintf(out + strlen(out), ":%"PRIu16, ntoh16(addr->ipv6.port));
out[0] = '[';
BIPAddr_Print(&ipaddr, out + 1);
sprintf(out + strlen(out), "]:%"PRIu16, ntoh16(addr->ipv6.port));
break;
#ifdef BADVPN_LINUX
case BADDR_TYPE_PACKET:
Expand Down
Loading