[Pkg-privacy-commits] [Git][pkg-privacy-team/golang-goptlib][master] 3 commits: New upstream version 1.6.0
Antoine Beaupré (@anarcat)
anarcat at debian.org
Fri Dec 6 18:46:01 GMT 2024
Antoine Beaupré pushed to branch master at Privacy Maintainers / golang-goptlib
Commits:
18c0cc22 by Antoine Beaupré at 2024-12-06T13:36:10-05:00
New upstream version 1.6.0
- - - - -
e8c91db9 by Antoine Beaupré at 2024-12-06T13:36:12-05:00
Update upstream source from tag 'upstream/1.6.0'
Update to upstream version '1.6.0'
with Debian dir b54b1efea141a7c4c77fecf754196055245efc04
- - - - -
5dea421a by Antoine Beaupré at 2024-12-06T13:37:14-05:00
prepare 1.6.0-1 upload
- - - - -
4 changed files:
- ChangeLog
- debian/changelog
- pt.go
- pt_test.go
Changes:
=====================================
ChangeLog
=====================================
@@ -1,8 +1,18 @@
+== v1.6.0
+
+Fixed a type assertion panic in DialOr that occurred when the network dial
+failed. Patch by Rob Jansen.
+https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib/-/issues/2
+
+Enhanced the TestGetServerBindaddrs test to compare not only MethodName and
+Addr, but also Options, and fixed a test case that expected the wrong Options.
+Patch by Jack Wampler.
+https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib/-/merge_requests/2
+
== v1.5.0
Added the ReportVersion function that lets a client or server report its
implementation version using the new STATUS TYPE=version feature.
-
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib/-/issues/1
== v1.4.0
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+golang-goptlib (1.6.0-1) unstable; urgency=medium
+
+ * Team upload
+ * New upstream release
+
+ -- Antoine Beaupré <anarcat at debian.org> Fri, 06 Dec 2024 13:36:18 -0500
+
golang-goptlib (1.5.0-1) unstable; urgency=medium
* Update source in d/watch.
=====================================
pt.go
=====================================
@@ -1045,5 +1045,8 @@ func DialOrWithDialer(dialer *net.Dialer, info *ServerInfo, addr, methodName str
// sent.
func DialOr(info *ServerInfo, addr, methodName string) (*net.TCPConn, error) {
c, err := DialOrWithDialer(&net.Dialer{}, info, addr, methodName)
- return c.(*net.TCPConn), err
+ if err != nil {
+ return nil, err
+ }
+ return c.(*net.TCPConn), nil
}
=====================================
pt_test.go
=====================================
@@ -275,7 +275,7 @@ func TestResolveAddr(t *testing.T) {
func bindaddrSliceContains(s []Bindaddr, v Bindaddr) bool {
for _, sv := range s {
- if sv.MethodName == v.MethodName && tcpAddrsEqual(sv.Addr, v.Addr) {
+ if sv.MethodName == v.MethodName && tcpAddrsEqual(sv.Addr, v.Addr) && argsEqual(sv.Options, v.Options) {
return true
}
}
@@ -354,12 +354,21 @@ func TestGetServerBindaddrs(t *testing.T) {
{
"alpha-1.2.3.4:1111,beta-[1:2::3:4]:2222",
"alpha,beta,gamma",
- "alpha:k1=v1,beta:k2=v2,gamma:k3=v3",
+ "alpha:k1=v1;beta:k2=v2;gamma:k3=v3",
[]Bindaddr{
{"alpha", &net.TCPAddr{IP: net.ParseIP("1.2.3.4"), Port: 1111}, Args{"k1": []string{"v1"}}},
{"beta", &net.TCPAddr{IP: net.ParseIP("1:2::3:4"), Port: 2222}, Args{"k2": []string{"v2"}}},
},
},
+ {
+ "alpha-1.2.3.4:1111,beta-[1:2::3:4]:2222",
+ "alpha,beta,gamma",
+ "alpha:k1=v1,beta:k2=v2,gamma:k3=v3",
+ []Bindaddr{
+ {"alpha", &net.TCPAddr{IP: net.ParseIP("1.2.3.4"), Port: 1111}, Args{"k1": []string{"v1,beta:k2=v2,gamma:k3=v3"}}},
+ {"beta", &net.TCPAddr{IP: net.ParseIP("1:2::3:4"), Port: 2222}, Args{}},
+ },
+ },
{
"alpha-1.2.3.4:1111",
"xxx",
View it on GitLab: https://salsa.debian.org/pkg-privacy-team/golang-goptlib/-/compare/8356f242918d829365276306091a7737ee7082d1...5dea421a200526ab19f62ddaa7ed08d0dc0ac444
--
View it on GitLab: https://salsa.debian.org/pkg-privacy-team/golang-goptlib/-/compare/8356f242918d829365276306091a7737ee7082d1...5dea421a200526ab19f62ddaa7ed08d0dc0ac444
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-privacy-commits/attachments/20241206/53cfc168/attachment-0001.htm>
More information about the Pkg-privacy-commits
mailing list