Skip to content

gg --node 使用 http 协议如何指定用户名和密码 #93

Description

@inQDrNWP8

以下三种方式均可以成功:

gg -n socks://admin:123@127.0.0.1:10810 curl 4.ipw.cn
123.123.123.123

gg -n socks://127.0.0.1:10810 curl 4.ipw.cn
123.123.123.123


gg -n http://127.0.0.1:10810 curl 4.ipw.cn
123.123.123.123

当使用 http 需要指定账号密码时,出现了错误

gg -n http://admin:123@127.0.0.1:10810 curl 4.ipw.cn
FATA[0000] GetDialer:unable to connect to the proxy node: connectivity test failed: Get "https://connectivitycheck.gstatic.com/generate_204": connect server using proxy error, StatusCode [407] 

gg -n -vv http://admin:123@127.0.0.1:10810 curl 4.ipw.cn
FATA[0000] exec.LookPath:exec: "http://admin:123@127.0.0.1:10810": stat http://admin:123@127.0.0.1:10810: no such file or directory 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions