daeuniverse / dae

eBPF-based Linux high-performance transparent proxy solution.
GNU Affero General Public License v3.0
2.62k stars 165 forks source link

fix/chore(hy2): update outbound submodule to fix userpass auth #550

Closed mzz2017 closed 1 week ago

mzz2017 commented 1 week ago

Background

当前不支持 userpass 的认证方式,已经在 https://github.com/daeuniverse/outbound/issues/14 修复。

感谢 @xmapst

Checklist

Full Changelogs

Issue Reference

Closes https://github.com/daeuniverse/outbound/pull/13

Test Result

xmapst commented 1 week ago

什么时候会合并呢

douglarek commented 1 week ago

The hy2 server was tested and passed using the following configuration:

auth:
  type: userpass
  userpass:
    foo: bar

dae config:

a: 'hy2://foo%3Abar@a.b.xyz:443'
mzz2017 commented 1 week ago

@douglarek 请帮忙测试一下

a: 'hy2://foo:bar@a.b.xyz:443'
douglarek commented 1 week ago

@douglarek 请帮忙测试一下

a: 'hy2://foo:bar@a.b.xyz:443'

This doesn't work.

level=warning msg="handleConn: failed to dial xxx:443: authentication error, HTTP status code: 404"
mzz2017 commented 1 week ago

@douglarek 我这里测试通过的

image
mzz@lima-default:~/goProjects/dae$ ./dae --version
dae version unstable-20240617.r709.62f17a5
go runtime go1.22.0 linux/arm64
Copyright (c) 2022-2024 @daeuniverse
License GNU AGPLv3 <https://github.com/daeuniverse/dae/blob/main/LICENSE>
douglarek commented 1 week ago

@douglarek 我这里测试通过的

image
mzz@lima-default:~/goProjects/dae$ ./dae --version
dae version unstable-20240617.r709.62f17a5
go runtime go1.22.0 linux/arm64
Copyright (c) 2022-2024 @daeuniverse
License GNU AGPLv3 <https://github.com/daeuniverse/dae/blob/main/LICENSE>

This is awkward, I didn't apply your patch and was switching back and forth before. Before this patch, the %3A notation could be used. Applying this patch should solve the problem.

It indeed worked. It can indeed be merged now.