alibaba / alibaba/anyproxy

代理hostname为ip地址的https请求失败

Open
#460 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

将手机模拟器的代理设置为anyproxy,结果请求全部失败。
看了下源码,`httpsServerMgr.getSharedHttpsServer`这个函数如果传入的是ip地址那么返回的是一个目标服务器的ip地址和一个本地的端口,我自己把ip改成本地的发现可以正常工作了。

#### Which platform are you running AnyProxy

linux manjaro
#### The version of the AnyProxy

最新的master

#### Your expected behavior of AnyProxy

#### The actual behavior of AnyProxy

#### The log of the error

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading httpsServerMgr.getSharedHttpsServer and reproduce the HTTPS proxy failure with AnyProxy on Linux Manjaro using an IP-address hostname. Compare its returned target address and local port with the behavior when the address is local. Done means HTTPS requests through the emulator's AnyProxy proxy succeed when the hostname is an IP address.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.