From 5aaecd7ebd23a3f6f2c37df19406c6b1695c6791 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:25:22 +0000 Subject: [PATCH 1/7] Update module github.com/pion/transport/v3 to v3.0.4 Generated by renovateBot --- go.mod | 5 +++-- go.sum | 21 +++++++-------------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/go.mod b/go.mod index 43f967a7..c0e7f4e8 100644 --- a/go.mod +++ b/go.mod @@ -6,9 +6,9 @@ require ( github.com/pion/logging v0.2.2 github.com/pion/randutil v0.1.0 github.com/pion/stun/v2 v2.0.0 - github.com/pion/transport/v3 v3.0.2 + github.com/pion/transport/v3 v3.0.4 github.com/stretchr/testify v1.9.0 - golang.org/x/sys v0.21.0 + golang.org/x/sys v0.22.0 ) require ( @@ -16,6 +16,7 @@ require ( github.com/pion/dtls/v2 v2.2.7 // indirect github.com/pion/transport/v2 v2.2.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/wlynxg/anet v0.0.3 // indirect golang.org/x/crypto v0.21.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index bb9dcc87..4813a512 100644 --- a/go.sum +++ b/go.sum @@ -12,26 +12,26 @@ github.com/pion/stun/v2 v2.0.0/go.mod h1:22qRSh08fSEttYUmJZGlriq9+03jtVmXNODgLcc github.com/pion/transport/v2 v2.2.1 h1:7qYnCBlpgSJNYMbLCKuSY9KbQdBFoETvPNETv0y4N7c= github.com/pion/transport/v2 v2.2.1/go.mod h1:cXXWavvCnFF6McHTft3DWS9iic2Mftcz1Aq29pGcU5g= github.com/pion/transport/v3 v3.0.1/go.mod h1:UY7kiITrlMv7/IKgd5eTUcaahZx5oUN3l9SzK5f5xE0= -github.com/pion/transport/v3 v3.0.2 h1:r+40RJR25S9w3jbA6/5uEPTzcdn7ncyU44RWCbHkLg4= -github.com/pion/transport/v3 v3.0.2/go.mod h1:nIToODoOlb5If2jF9y2Igfx3PFYWfuXi37m0IlWa/D0= +github.com/pion/transport/v3 v3.0.4 h1:c9gr6afU15XfP535VjEzoHHomFSMUWTn9aLmnGZsIVk= +github.com/pion/transport/v3 v3.0.4/go.mod h1:HvJr2N/JwNJAfipsRleqwFoR3t/pWyHeZUs89v3+t5s= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/wlynxg/anet v0.0.3 h1:PvR53psxFXstc12jelG6f1Lv4MWqE0tI76/hHGjh9rg= +github.com/wlynxg/anet v0.0.3/go.mod h1:eay5PRQr7fIVAMbTbchTnO9gG65Hg/uYGdc7mguHxoA= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE= golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= -golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= @@ -43,9 +43,7 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= -golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= -golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= -golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -58,25 +56,20 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= +golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= -golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= From a95f35e31cc4abfb7c8544d17a683349858be8eb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 23 Jul 2024 05:57:08 +0000 Subject: [PATCH 2/7] Update module github.com/pion/transport/v3 to v3.0.5 Generated by renovateBot --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index c0e7f4e8..c6516db4 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/pion/logging v0.2.2 github.com/pion/randutil v0.1.0 github.com/pion/stun/v2 v2.0.0 - github.com/pion/transport/v3 v3.0.4 + github.com/pion/transport/v3 v3.0.5 github.com/stretchr/testify v1.9.0 golang.org/x/sys v0.22.0 ) diff --git a/go.sum b/go.sum index 4813a512..36e27add 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,8 @@ github.com/pion/stun/v2 v2.0.0/go.mod h1:22qRSh08fSEttYUmJZGlriq9+03jtVmXNODgLcc github.com/pion/transport/v2 v2.2.1 h1:7qYnCBlpgSJNYMbLCKuSY9KbQdBFoETvPNETv0y4N7c= github.com/pion/transport/v2 v2.2.1/go.mod h1:cXXWavvCnFF6McHTft3DWS9iic2Mftcz1Aq29pGcU5g= github.com/pion/transport/v3 v3.0.1/go.mod h1:UY7kiITrlMv7/IKgd5eTUcaahZx5oUN3l9SzK5f5xE0= -github.com/pion/transport/v3 v3.0.4 h1:c9gr6afU15XfP535VjEzoHHomFSMUWTn9aLmnGZsIVk= -github.com/pion/transport/v3 v3.0.4/go.mod h1:HvJr2N/JwNJAfipsRleqwFoR3t/pWyHeZUs89v3+t5s= +github.com/pion/transport/v3 v3.0.5 h1:ofVrcbPNqVPuKaTO5AMFnFuJ1ZX7ElYiWzC5PCf9YVQ= +github.com/pion/transport/v3 v3.0.5/go.mod h1:HvJr2N/JwNJAfipsRleqwFoR3t/pWyHeZUs89v3+t5s= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= From 9a2e6f80247a4a3f0b2aa9d2440016e51180b085 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 23:34:24 +0000 Subject: [PATCH 3/7] Update module github.com/pion/transport/v3 to v3.0.6 Generated by renovateBot --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index c6516db4..0c2534d0 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/pion/logging v0.2.2 github.com/pion/randutil v0.1.0 github.com/pion/stun/v2 v2.0.0 - github.com/pion/transport/v3 v3.0.5 + github.com/pion/transport/v3 v3.0.6 github.com/stretchr/testify v1.9.0 golang.org/x/sys v0.22.0 ) diff --git a/go.sum b/go.sum index 36e27add..5146cef1 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,8 @@ github.com/pion/stun/v2 v2.0.0/go.mod h1:22qRSh08fSEttYUmJZGlriq9+03jtVmXNODgLcc github.com/pion/transport/v2 v2.2.1 h1:7qYnCBlpgSJNYMbLCKuSY9KbQdBFoETvPNETv0y4N7c= github.com/pion/transport/v2 v2.2.1/go.mod h1:cXXWavvCnFF6McHTft3DWS9iic2Mftcz1Aq29pGcU5g= github.com/pion/transport/v3 v3.0.1/go.mod h1:UY7kiITrlMv7/IKgd5eTUcaahZx5oUN3l9SzK5f5xE0= -github.com/pion/transport/v3 v3.0.5 h1:ofVrcbPNqVPuKaTO5AMFnFuJ1ZX7ElYiWzC5PCf9YVQ= -github.com/pion/transport/v3 v3.0.5/go.mod h1:HvJr2N/JwNJAfipsRleqwFoR3t/pWyHeZUs89v3+t5s= +github.com/pion/transport/v3 v3.0.6 h1:k1mQU06bmmX143qSWgXFqSH1KUJceQvIUuVH/K5ELWw= +github.com/pion/transport/v3 v3.0.6/go.mod h1:HvJr2N/JwNJAfipsRleqwFoR3t/pWyHeZUs89v3+t5s= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= From 27c30c9538fc563f5fbab5f7f0a72ca384c271b5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 2 Aug 2024 16:56:27 +0000 Subject: [PATCH 4/7] Update module github.com/pion/transport/v3 to v3.0.7 Generated by renovateBot --- go.mod | 2 +- go.sum | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 0c2534d0..cf1e41ba 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/pion/logging v0.2.2 github.com/pion/randutil v0.1.0 github.com/pion/stun/v2 v2.0.0 - github.com/pion/transport/v3 v3.0.6 + github.com/pion/transport/v3 v3.0.7 github.com/stretchr/testify v1.9.0 golang.org/x/sys v0.22.0 ) diff --git a/go.sum b/go.sum index 5146cef1..a3aa6b5a 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,8 @@ github.com/pion/stun/v2 v2.0.0/go.mod h1:22qRSh08fSEttYUmJZGlriq9+03jtVmXNODgLcc github.com/pion/transport/v2 v2.2.1 h1:7qYnCBlpgSJNYMbLCKuSY9KbQdBFoETvPNETv0y4N7c= github.com/pion/transport/v2 v2.2.1/go.mod h1:cXXWavvCnFF6McHTft3DWS9iic2Mftcz1Aq29pGcU5g= github.com/pion/transport/v3 v3.0.1/go.mod h1:UY7kiITrlMv7/IKgd5eTUcaahZx5oUN3l9SzK5f5xE0= -github.com/pion/transport/v3 v3.0.6 h1:k1mQU06bmmX143qSWgXFqSH1KUJceQvIUuVH/K5ELWw= -github.com/pion/transport/v3 v3.0.6/go.mod h1:HvJr2N/JwNJAfipsRleqwFoR3t/pWyHeZUs89v3+t5s= +github.com/pion/transport/v3 v3.0.7 h1:iRbMH05BzSNwhILHoBoAPxoB9xQgOaJk+591KC9P1o0= +github.com/pion/transport/v3 v3.0.7/go.mod h1:YleKiTZ4vqNxVwh77Z0zytYi7rXHl7j6uPLGhhz9rwo= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -43,7 +43,7 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= -golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= From f5deeb891cae25aa0935bc36e7c5d8e5eec3f6a9 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Mon, 12 Aug 2024 11:26:26 -0400 Subject: [PATCH 5/7] Update module github.com/pion/stun/v3 to v3.0.0 --- client.go | 6 +- client_test.go | 4 +- examples/lt-cred-generator/main.go | 2 +- examples/stun-only-server/main.go | 2 +- examples/turn-client/tcp-alloc/main.go | 2 +- examples/turn-client/tcp/main.go | 2 +- examples/turn-client/udp/main.go | 2 +- .../add-software-attribute/main.go | 4 +- examples/turn-server/log/main.go | 4 +- .../turn-server/lt-cred-turn-rest/main.go | 2 +- examples/turn-server/lt-cred/main.go | 2 +- examples/turn-server/perm-filter/main.go | 2 +- examples/turn-server/port-range/main.go | 2 +- .../turn-server/simple-multithreaded/main.go | 2 +- examples/turn-server/simple/main.go | 2 +- examples/turn-server/tcp/main.go | 2 +- examples/turn-server/tls/main.go | 2 +- go.mod | 9 ++- go.sum | 67 ++----------------- internal/allocation/allocation.go | 6 +- .../allocation/allocation_manager_test.go | 2 +- internal/allocation/allocation_test.go | 6 +- internal/allocation/channel_bind.go | 2 +- internal/allocation/channel_bind_test.go | 2 +- internal/client/allocation.go | 4 +- internal/client/client.go | 2 +- internal/client/client_test.go | 2 +- internal/client/permission.go | 2 +- internal/client/tcp_alloc.go | 4 +- internal/client/tcp_conn.go | 2 +- internal/client/tcp_conn_test.go | 4 +- internal/client/transaction.go | 2 +- internal/client/udp_conn.go | 4 +- internal/client/udp_conn_test.go | 2 +- internal/proto/chann.go | 2 +- internal/proto/chann_test.go | 2 +- internal/proto/chrome_test.go | 2 +- internal/proto/connection_id.go | 2 +- internal/proto/data.go | 2 +- internal/proto/data_test.go | 2 +- internal/proto/dontfrag.go | 2 +- internal/proto/dontfrag_test.go | 2 +- internal/proto/evenport.go | 2 +- internal/proto/evenport_test.go | 2 +- internal/proto/fuzz_test.go | 2 +- internal/proto/lifetime.go | 2 +- internal/proto/lifetime_test.go | 2 +- internal/proto/peeraddr.go | 2 +- internal/proto/peeraddr_test.go | 2 +- internal/proto/proto.go | 2 +- internal/proto/relayedaddr.go | 2 +- internal/proto/relayedaddr_test.go | 2 +- internal/proto/reqfamily.go | 2 +- internal/proto/reqfamily_test.go | 2 +- internal/proto/reqtrans.go | 2 +- internal/proto/reqtrans_test.go | 2 +- internal/proto/rsrvtoken.go | 2 +- internal/proto/rsrvtoken_test.go | 2 +- internal/server/server.go | 6 +- internal/server/stun.go | 4 +- internal/server/turn.go | 8 +-- internal/server/turn_test.go | 6 +- internal/server/util.go | 4 +- server.go | 6 +- server_test.go | 4 +- stun_conn.go | 4 +- 66 files changed, 100 insertions(+), 156 deletions(-) diff --git a/client.go b/client.go index eaa811d6..6e38ae10 100644 --- a/client.go +++ b/client.go @@ -12,11 +12,11 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/pion/transport/v3" "github.com/pion/transport/v3/stdnet" - "github.com/pion/turn/v3/internal/client" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/turn/v4/internal/client" + "github.com/pion/turn/v4/internal/proto" ) const ( diff --git a/client_test.go b/client_test.go index ec50b14c..0627b95e 100644 --- a/client_test.go +++ b/client_test.go @@ -12,8 +12,8 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4/internal/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/examples/lt-cred-generator/main.go b/examples/lt-cred-generator/main.go index f9d50bb1..fc5ea527 100644 --- a/examples/lt-cred-generator/main.go +++ b/examples/lt-cred-generator/main.go @@ -12,7 +12,7 @@ import ( "os" "time" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) // Outputs username & password according to the diff --git a/examples/stun-only-server/main.go b/examples/stun-only-server/main.go index 5cba2997..da10e582 100644 --- a/examples/stun-only-server/main.go +++ b/examples/stun-only-server/main.go @@ -13,7 +13,7 @@ import ( "strconv" "syscall" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func main() { diff --git a/examples/turn-client/tcp-alloc/main.go b/examples/turn-client/tcp-alloc/main.go index c52ecff8..1fee091d 100644 --- a/examples/turn-client/tcp-alloc/main.go +++ b/examples/turn-client/tcp-alloc/main.go @@ -13,7 +13,7 @@ import ( "strings" "github.com/pion/logging" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func setupSignalingChannel(addrCh chan string, signaling bool, relayAddr string) { diff --git a/examples/turn-client/tcp/main.go b/examples/turn-client/tcp/main.go index f73a2021..f7a7ec1d 100644 --- a/examples/turn-client/tcp/main.go +++ b/examples/turn-client/tcp/main.go @@ -13,7 +13,7 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func main() { diff --git a/examples/turn-client/udp/main.go b/examples/turn-client/udp/main.go index e80a2898..d53ea8f7 100644 --- a/examples/turn-client/udp/main.go +++ b/examples/turn-client/udp/main.go @@ -13,7 +13,7 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func main() { diff --git a/examples/turn-server/add-software-attribute/main.go b/examples/turn-server/add-software-attribute/main.go index 1e47058e..bffeb1e9 100644 --- a/examples/turn-server/add-software-attribute/main.go +++ b/examples/turn-server/add-software-attribute/main.go @@ -15,8 +15,8 @@ import ( "strconv" "syscall" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4" ) // attributeAdder wraps a PacketConn and appends the SOFTWARE attribute to STUN packets diff --git a/examples/turn-server/log/main.go b/examples/turn-server/log/main.go index 2298abc7..fc974e07 100644 --- a/examples/turn-server/log/main.go +++ b/examples/turn-server/log/main.go @@ -15,8 +15,8 @@ import ( "strconv" "syscall" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4" ) // stunLogger wraps a PacketConn and prints incoming/outgoing STUN packets diff --git a/examples/turn-server/lt-cred-turn-rest/main.go b/examples/turn-server/lt-cred-turn-rest/main.go index b85e8061..655cdbc3 100644 --- a/examples/turn-server/lt-cred-turn-rest/main.go +++ b/examples/turn-server/lt-cred-turn-rest/main.go @@ -15,7 +15,7 @@ import ( "syscall" "github.com/pion/logging" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func main() { diff --git a/examples/turn-server/lt-cred/main.go b/examples/turn-server/lt-cred/main.go index 3fa81dfa..b05d2aa3 100644 --- a/examples/turn-server/lt-cred/main.go +++ b/examples/turn-server/lt-cred/main.go @@ -18,7 +18,7 @@ import ( "syscall" "github.com/pion/logging" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func main() { diff --git a/examples/turn-server/perm-filter/main.go b/examples/turn-server/perm-filter/main.go index 11139029..ab2c24b8 100644 --- a/examples/turn-server/perm-filter/main.go +++ b/examples/turn-server/perm-filter/main.go @@ -18,7 +18,7 @@ import ( "strings" "syscall" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func main() { diff --git a/examples/turn-server/port-range/main.go b/examples/turn-server/port-range/main.go index 5d89e994..9ed536ed 100644 --- a/examples/turn-server/port-range/main.go +++ b/examples/turn-server/port-range/main.go @@ -15,7 +15,7 @@ import ( "strconv" "syscall" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func main() { diff --git a/examples/turn-server/simple-multithreaded/main.go b/examples/turn-server/simple-multithreaded/main.go index acae7e59..fb89473c 100644 --- a/examples/turn-server/simple-multithreaded/main.go +++ b/examples/turn-server/simple-multithreaded/main.go @@ -17,7 +17,7 @@ import ( "strconv" "syscall" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" "golang.org/x/sys/unix" ) diff --git a/examples/turn-server/simple/main.go b/examples/turn-server/simple/main.go index d2ba7d7c..294b76a5 100644 --- a/examples/turn-server/simple/main.go +++ b/examples/turn-server/simple/main.go @@ -14,7 +14,7 @@ import ( "strconv" "syscall" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func main() { diff --git a/examples/turn-server/tcp/main.go b/examples/turn-server/tcp/main.go index 9a6ab47b..ef3d147c 100644 --- a/examples/turn-server/tcp/main.go +++ b/examples/turn-server/tcp/main.go @@ -14,7 +14,7 @@ import ( "strconv" "syscall" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func main() { diff --git a/examples/turn-server/tls/main.go b/examples/turn-server/tls/main.go index 61823086..5d9d971c 100644 --- a/examples/turn-server/tls/main.go +++ b/examples/turn-server/tls/main.go @@ -15,7 +15,7 @@ import ( "strconv" "syscall" - "github.com/pion/turn/v3" + "github.com/pion/turn/v4" ) func main() { diff --git a/go.mod b/go.mod index cf1e41ba..c3f83f52 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,11 @@ -module github.com/pion/turn/v3 +module github.com/pion/turn/v4 go 1.19 require ( github.com/pion/logging v0.2.2 github.com/pion/randutil v0.1.0 - github.com/pion/stun/v2 v2.0.0 + github.com/pion/stun/v3 v3.0.0 github.com/pion/transport/v3 v3.0.7 github.com/stretchr/testify v1.9.0 golang.org/x/sys v0.22.0 @@ -13,10 +13,9 @@ require ( require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/pion/dtls/v2 v2.2.7 // indirect - github.com/pion/transport/v2 v2.2.1 // indirect + github.com/pion/dtls/v3 v3.0.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/wlynxg/anet v0.0.3 // indirect - golang.org/x/crypto v0.21.0 // indirect + golang.org/x/crypto v0.25.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index a3aa6b5a..8092847b 100644 --- a/go.sum +++ b/go.sum @@ -1,82 +1,27 @@ -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pion/dtls/v2 v2.2.7 h1:cSUBsETxepsCSFSxC3mc/aDo14qQLMSL+O6IjG28yV8= -github.com/pion/dtls/v2 v2.2.7/go.mod h1:8WiMkebSHFD0T+dIU+UeBaoV7kDhOW5oDCzZ7WZ/F9s= +github.com/pion/dtls/v3 v3.0.1 h1:0kmoaPYLAo0md/VemjcrAXQiSf8U+tuU3nDYVNpEKaw= +github.com/pion/dtls/v3 v3.0.1/go.mod h1:dfIXcFkKoujDQ+jtd8M6RgqKK3DuaUilm3YatAbGp5k= github.com/pion/logging v0.2.2 h1:M9+AIj/+pxNsDfAT64+MAVgJO0rsyLnoJKCqf//DoeY= github.com/pion/logging v0.2.2/go.mod h1:k0/tDVsRCX2Mb2ZEmTqNa7CWsQPc+YYCB7Q+5pahoms= github.com/pion/randutil v0.1.0 h1:CFG1UdESneORglEsnimhUjf33Rwjubwj6xfiOXBa3mA= github.com/pion/randutil v0.1.0/go.mod h1:XcJrSMMbbMRhASFVOlj/5hQial/Y8oH/HVo7TBZq+j8= -github.com/pion/stun/v2 v2.0.0 h1:A5+wXKLAypxQri59+tmQKVs7+l6mMM+3d+eER9ifRU0= -github.com/pion/stun/v2 v2.0.0/go.mod h1:22qRSh08fSEttYUmJZGlriq9+03jtVmXNODgLccj8GQ= -github.com/pion/transport/v2 v2.2.1 h1:7qYnCBlpgSJNYMbLCKuSY9KbQdBFoETvPNETv0y4N7c= -github.com/pion/transport/v2 v2.2.1/go.mod h1:cXXWavvCnFF6McHTft3DWS9iic2Mftcz1Aq29pGcU5g= -github.com/pion/transport/v3 v3.0.1/go.mod h1:UY7kiITrlMv7/IKgd5eTUcaahZx5oUN3l9SzK5f5xE0= +github.com/pion/stun/v3 v3.0.0 h1:4h1gwhWLWuZWOJIJR9s2ferRO+W3zA/b6ijOI6mKzUw= +github.com/pion/stun/v3 v3.0.0/go.mod h1:HvCN8txt8mwi4FBvS3EmDghW6aQJ24T+y+1TKjB5jyU= github.com/pion/transport/v3 v3.0.7 h1:iRbMH05BzSNwhILHoBoAPxoB9xQgOaJk+591KC9P1o0= github.com/pion/transport/v3 v3.0.7/go.mod h1:YleKiTZ4vqNxVwh77Z0zytYi7rXHl7j6uPLGhhz9rwo= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/wlynxg/anet v0.0.3 h1:PvR53psxFXstc12jelG6f1Lv4MWqE0tI76/hHGjh9rg= github.com/wlynxg/anet v0.0.3/go.mod h1:eay5PRQr7fIVAMbTbchTnO9gG65Hg/uYGdc7mguHxoA= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE= -golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= -golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= -golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= +golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/allocation/allocation.go b/internal/allocation/allocation.go index 9e542fb3..5b5ff369 100644 --- a/internal/allocation/allocation.go +++ b/internal/allocation/allocation.go @@ -11,9 +11,9 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3/internal/ipnet" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4/internal/ipnet" + "github.com/pion/turn/v4/internal/proto" ) type allocationResponse struct { diff --git a/internal/allocation/allocation_manager_test.go b/internal/allocation/allocation_manager_test.go index 5ebfe68b..014d85d3 100644 --- a/internal/allocation/allocation_manager_test.go +++ b/internal/allocation/allocation_manager_test.go @@ -15,7 +15,7 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/turn/v4/internal/proto" "github.com/stretchr/testify/assert" ) diff --git a/internal/allocation/allocation_test.go b/internal/allocation/allocation_test.go index 70c383a2..49269d68 100644 --- a/internal/allocation/allocation_test.go +++ b/internal/allocation/allocation_test.go @@ -13,9 +13,9 @@ import ( "testing" "time" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3/internal/ipnet" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4/internal/ipnet" + "github.com/pion/turn/v4/internal/proto" "github.com/stretchr/testify/assert" ) diff --git a/internal/allocation/channel_bind.go b/internal/allocation/channel_bind.go index b096fcd4..19b18431 100644 --- a/internal/allocation/channel_bind.go +++ b/internal/allocation/channel_bind.go @@ -8,7 +8,7 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/turn/v4/internal/proto" ) // ChannelBind represents a TURN Channel diff --git a/internal/allocation/channel_bind_test.go b/internal/allocation/channel_bind_test.go index 342e7612..30e3034a 100644 --- a/internal/allocation/channel_bind_test.go +++ b/internal/allocation/channel_bind_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/turn/v4/internal/proto" ) func TestChannelBind(t *testing.T) { diff --git a/internal/client/allocation.go b/internal/client/allocation.go index 49b09b63..a7f74636 100644 --- a/internal/client/allocation.go +++ b/internal/client/allocation.go @@ -11,9 +11,9 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/pion/transport/v3" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/turn/v4/internal/proto" ) // AllocationConfig is a set of configuration params use by NewUDPConn and NewTCPAllocation diff --git a/internal/client/client.go b/internal/client/client.go index 615da808..10b49a28 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -7,7 +7,7 @@ package client import ( "net" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) // Client is an interface for the public turn.Client in order to break cyclic dependencies diff --git a/internal/client/client_test.go b/internal/client/client_test.go index c544c8a5..95d68c90 100644 --- a/internal/client/client_test.go +++ b/internal/client/client_test.go @@ -6,7 +6,7 @@ package client import ( "net" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) type mockClient struct { diff --git a/internal/client/permission.go b/internal/client/permission.go index b9798756..0436e4ea 100644 --- a/internal/client/permission.go +++ b/internal/client/permission.go @@ -8,7 +8,7 @@ import ( "sync" "sync/atomic" - "github.com/pion/turn/v3/internal/ipnet" + "github.com/pion/turn/v4/internal/ipnet" ) type permState int32 diff --git a/internal/client/tcp_alloc.go b/internal/client/tcp_alloc.go index f6f8b4c8..82948387 100644 --- a/internal/client/tcp_alloc.go +++ b/internal/client/tcp_alloc.go @@ -11,9 +11,9 @@ import ( "net" "time" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/pion/transport/v3" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/turn/v4/internal/proto" ) var ( diff --git a/internal/client/tcp_conn.go b/internal/client/tcp_conn.go index faed98bb..990b6d42 100644 --- a/internal/client/tcp_conn.go +++ b/internal/client/tcp_conn.go @@ -8,7 +8,7 @@ import ( "net" "github.com/pion/transport/v3" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/turn/v4/internal/proto" ) var ( diff --git a/internal/client/tcp_conn_test.go b/internal/client/tcp_conn_test.go index e0f2777d..b7ef6d8c 100644 --- a/internal/client/tcp_conn_test.go +++ b/internal/client/tcp_conn_test.go @@ -9,9 +9,9 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/pion/transport/v3" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/turn/v4/internal/proto" "github.com/stretchr/testify/assert" ) diff --git a/internal/client/transaction.go b/internal/client/transaction.go index 6031d6c3..b1c9105e 100644 --- a/internal/client/transaction.go +++ b/internal/client/transaction.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) const ( diff --git a/internal/client/udp_conn.go b/internal/client/udp_conn.go index 82b0f73c..7bb18765 100644 --- a/internal/client/udp_conn.go +++ b/internal/client/udp_conn.go @@ -12,8 +12,8 @@ import ( "net" "time" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4/internal/proto" ) const ( diff --git a/internal/client/udp_conn_test.go b/internal/client/udp_conn_test.go index ee7ef7fc..889ffe4b 100644 --- a/internal/client/udp_conn_test.go +++ b/internal/client/udp_conn_test.go @@ -7,7 +7,7 @@ import ( "net" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/stretchr/testify/assert" ) diff --git a/internal/proto/chann.go b/internal/proto/chann.go index 5bf92579..3aeb59f3 100644 --- a/internal/proto/chann.go +++ b/internal/proto/chann.go @@ -8,7 +8,7 @@ import ( "errors" "strconv" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) // ChannelNumber represents CHANNEL-NUMBER attribute. diff --git a/internal/proto/chann_test.go b/internal/proto/chann_test.go index 1a32f257..04c85fda 100644 --- a/internal/proto/chann_test.go +++ b/internal/proto/chann_test.go @@ -7,7 +7,7 @@ import ( "errors" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/stretchr/testify/assert" ) diff --git a/internal/proto/chrome_test.go b/internal/proto/chrome_test.go index 9ad81c78..3511f78a 100644 --- a/internal/proto/chrome_test.go +++ b/internal/proto/chrome_test.go @@ -9,7 +9,7 @@ import ( "encoding/hex" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) func TestChromeAllocRequest(t *testing.T) { diff --git a/internal/proto/connection_id.go b/internal/proto/connection_id.go index 8794d99d..568deff1 100644 --- a/internal/proto/connection_id.go +++ b/internal/proto/connection_id.go @@ -6,7 +6,7 @@ package proto import ( "encoding/binary" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) // ConnectionID represents CONNECTION-ID attribute. diff --git a/internal/proto/data.go b/internal/proto/data.go index 16aafc9d..dcba23b4 100644 --- a/internal/proto/data.go +++ b/internal/proto/data.go @@ -3,7 +3,7 @@ package proto -import "github.com/pion/stun/v2" +import "github.com/pion/stun/v3" // Data represents DATA attribute. // diff --git a/internal/proto/data_test.go b/internal/proto/data_test.go index 875f13ee..1f18e451 100644 --- a/internal/proto/data_test.go +++ b/internal/proto/data_test.go @@ -8,7 +8,7 @@ import ( "errors" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/stretchr/testify/assert" ) diff --git a/internal/proto/dontfrag.go b/internal/proto/dontfrag.go index 44f9090d..e4be0af6 100644 --- a/internal/proto/dontfrag.go +++ b/internal/proto/dontfrag.go @@ -4,7 +4,7 @@ package proto import ( - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) // DontFragmentAttr is a deprecated alias for DontFragment diff --git a/internal/proto/dontfrag_test.go b/internal/proto/dontfrag_test.go index f276d06c..477d5632 100644 --- a/internal/proto/dontfrag_test.go +++ b/internal/proto/dontfrag_test.go @@ -6,7 +6,7 @@ package proto import ( "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) func TestDontFragment(t *testing.T) { diff --git a/internal/proto/evenport.go b/internal/proto/evenport.go index 3b41e2a7..31468c75 100644 --- a/internal/proto/evenport.go +++ b/internal/proto/evenport.go @@ -3,7 +3,7 @@ package proto -import "github.com/pion/stun/v2" +import "github.com/pion/stun/v3" // EvenPort represents EVEN-PORT attribute. // diff --git a/internal/proto/evenport_test.go b/internal/proto/evenport_test.go index 106ce1ef..7b09d177 100644 --- a/internal/proto/evenport_test.go +++ b/internal/proto/evenport_test.go @@ -7,7 +7,7 @@ import ( "errors" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/stretchr/testify/assert" ) diff --git a/internal/proto/fuzz_test.go b/internal/proto/fuzz_test.go index 2534e1a3..f9e5da3c 100644 --- a/internal/proto/fuzz_test.go +++ b/internal/proto/fuzz_test.go @@ -9,7 +9,7 @@ import ( "fmt" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) type attr interface { diff --git a/internal/proto/lifetime.go b/internal/proto/lifetime.go index ac26c3d5..6f55c7a9 100644 --- a/internal/proto/lifetime.go +++ b/internal/proto/lifetime.go @@ -7,7 +7,7 @@ import ( "encoding/binary" "time" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) // DefaultLifetime in RFC 5766 is 10 minutes. diff --git a/internal/proto/lifetime_test.go b/internal/proto/lifetime_test.go index cd52e839..a4aba420 100644 --- a/internal/proto/lifetime_test.go +++ b/internal/proto/lifetime_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/stretchr/testify/assert" ) diff --git a/internal/proto/peeraddr.go b/internal/proto/peeraddr.go index d6834a6e..f4d9de7b 100644 --- a/internal/proto/peeraddr.go +++ b/internal/proto/peeraddr.go @@ -6,7 +6,7 @@ package proto import ( "net" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) // PeerAddress implements XOR-PEER-ADDRESS attribute. diff --git a/internal/proto/peeraddr_test.go b/internal/proto/peeraddr_test.go index 5fb1cebc..9e45e0b0 100644 --- a/internal/proto/peeraddr_test.go +++ b/internal/proto/peeraddr_test.go @@ -7,7 +7,7 @@ import ( "net" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/stretchr/testify/assert" ) diff --git a/internal/proto/proto.go b/internal/proto/proto.go index 8d4f160a..170cf7f1 100644 --- a/internal/proto/proto.go +++ b/internal/proto/proto.go @@ -5,7 +5,7 @@ package proto import ( - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) // Default ports for TURN from RFC 5766 Section 4. diff --git a/internal/proto/relayedaddr.go b/internal/proto/relayedaddr.go index 97a6cf92..c5fb2686 100644 --- a/internal/proto/relayedaddr.go +++ b/internal/proto/relayedaddr.go @@ -6,7 +6,7 @@ package proto import ( "net" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) // RelayedAddress implements XOR-RELAYED-ADDRESS attribute. diff --git a/internal/proto/relayedaddr_test.go b/internal/proto/relayedaddr_test.go index c4320c9d..74b4137d 100644 --- a/internal/proto/relayedaddr_test.go +++ b/internal/proto/relayedaddr_test.go @@ -7,7 +7,7 @@ import ( "net" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" "github.com/stretchr/testify/assert" ) diff --git a/internal/proto/reqfamily.go b/internal/proto/reqfamily.go index d8592355..01016a98 100644 --- a/internal/proto/reqfamily.go +++ b/internal/proto/reqfamily.go @@ -6,7 +6,7 @@ package proto import ( "errors" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) // RequestedAddressFamily represents the REQUESTED-ADDRESS-FAMILY Attribute as diff --git a/internal/proto/reqfamily_test.go b/internal/proto/reqfamily_test.go index 12b6bf09..71ac087b 100644 --- a/internal/proto/reqfamily_test.go +++ b/internal/proto/reqfamily_test.go @@ -7,7 +7,7 @@ import ( "errors" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) func TestRequestedAddressFamily(t *testing.T) { diff --git a/internal/proto/reqtrans.go b/internal/proto/reqtrans.go index 2f80196d..111dcd69 100644 --- a/internal/proto/reqtrans.go +++ b/internal/proto/reqtrans.go @@ -6,7 +6,7 @@ package proto import ( "strconv" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) // Protocol is IANA assigned protocol number. diff --git a/internal/proto/reqtrans_test.go b/internal/proto/reqtrans_test.go index 9a95d273..e7416840 100644 --- a/internal/proto/reqtrans_test.go +++ b/internal/proto/reqtrans_test.go @@ -7,7 +7,7 @@ import ( "errors" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) func TestRequestedTransport(t *testing.T) { diff --git a/internal/proto/rsrvtoken.go b/internal/proto/rsrvtoken.go index b1f698b0..9c816485 100644 --- a/internal/proto/rsrvtoken.go +++ b/internal/proto/rsrvtoken.go @@ -3,7 +3,7 @@ package proto -import "github.com/pion/stun/v2" +import "github.com/pion/stun/v3" // ReservationToken represents RESERVATION-TOKEN attribute. // diff --git a/internal/proto/rsrvtoken_test.go b/internal/proto/rsrvtoken_test.go index 5d116032..35475134 100644 --- a/internal/proto/rsrvtoken_test.go +++ b/internal/proto/rsrvtoken_test.go @@ -8,7 +8,7 @@ import ( "errors" "testing" - "github.com/pion/stun/v2" + "github.com/pion/stun/v3" ) func TestReservationToken(t *testing.T) { diff --git a/internal/server/server.go b/internal/server/server.go index ad27f45b..253492e9 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -10,9 +10,9 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3/internal/allocation" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4/internal/allocation" + "github.com/pion/turn/v4/internal/proto" ) // Request contains all the state needed to process a single incoming datagram diff --git a/internal/server/stun.go b/internal/server/stun.go index 724aa8e0..393bb99d 100644 --- a/internal/server/stun.go +++ b/internal/server/stun.go @@ -4,8 +4,8 @@ package server import ( - "github.com/pion/stun/v2" - "github.com/pion/turn/v3/internal/ipnet" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4/internal/ipnet" ) func handleBindingRequest(r Request, m *stun.Message) error { diff --git a/internal/server/turn.go b/internal/server/turn.go index 19d7abcf..46e45ecb 100644 --- a/internal/server/turn.go +++ b/internal/server/turn.go @@ -8,10 +8,10 @@ import ( "net" "github.com/pion/randutil" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3/internal/allocation" - "github.com/pion/turn/v3/internal/ipnet" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4/internal/allocation" + "github.com/pion/turn/v4/internal/ipnet" + "github.com/pion/turn/v4/internal/proto" ) const runesAlpha = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" diff --git a/internal/server/turn_test.go b/internal/server/turn_test.go index 2590ab6e..e4a3b947 100644 --- a/internal/server/turn_test.go +++ b/internal/server/turn_test.go @@ -12,9 +12,9 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3/internal/allocation" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4/internal/allocation" + "github.com/pion/turn/v4/internal/proto" "github.com/stretchr/testify/assert" ) diff --git a/internal/server/util.go b/internal/server/util.go index 97f01c01..7c01d329 100644 --- a/internal/server/util.go +++ b/internal/server/util.go @@ -9,8 +9,8 @@ import ( "net" "time" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4/internal/proto" ) const ( diff --git a/server.go b/server.go index 91d7b1d5..3b58938f 100644 --- a/server.go +++ b/server.go @@ -11,9 +11,9 @@ import ( "time" "github.com/pion/logging" - "github.com/pion/turn/v3/internal/allocation" - "github.com/pion/turn/v3/internal/proto" - "github.com/pion/turn/v3/internal/server" + "github.com/pion/turn/v4/internal/allocation" + "github.com/pion/turn/v4/internal/proto" + "github.com/pion/turn/v4/internal/server" ) const ( diff --git a/server_test.go b/server_test.go index 754746aa..44020db6 100644 --- a/server_test.go +++ b/server_test.go @@ -16,8 +16,8 @@ import ( "github.com/pion/logging" "github.com/pion/transport/v3/test" "github.com/pion/transport/v3/vnet" - "github.com/pion/turn/v3/internal/allocation" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/turn/v4/internal/allocation" + "github.com/pion/turn/v4/internal/proto" "github.com/stretchr/testify/assert" ) diff --git a/stun_conn.go b/stun_conn.go index 78117161..57543544 100644 --- a/stun_conn.go +++ b/stun_conn.go @@ -9,8 +9,8 @@ import ( "net" "time" - "github.com/pion/stun/v2" - "github.com/pion/turn/v3/internal/proto" + "github.com/pion/stun/v3" + "github.com/pion/turn/v4/internal/proto" ) var ( From 01ef67e59014aec75d3f2087f2ed41696a7cccb6 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Mon, 12 Aug 2024 11:46:12 -0400 Subject: [PATCH 6/7] Fix pkg.go.dev link New major version --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a571c0ba..9133ac81 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@
GitHub Workflow Status - Go Reference + Go Reference Coverage Status - Go Report Card + Go Report Card License: MIT


From 50e1d5267f7d5c83e1e5bd0d365c73f5e4674e68 Mon Sep 17 00:00:00 2001 From: Pion <59523206+pionbot@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:20:25 +0000 Subject: [PATCH 7/7] Update CI configs to v0.11.15 Update lint scripts and CI configs. --- .github/workflows/test.yaml | 6 +++--- .golangci.yml | 8 ++++---- server_config.go | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 08e4272a..b0242893 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -23,7 +23,7 @@ jobs: uses: pion/.goassets/.github/workflows/test.reusable.yml@master strategy: matrix: - go: ["1.22", "1.21"] # auto-update/supported-go-version-list + go: ["1.23", "1.22"] # auto-update/supported-go-version-list fail-fast: false with: go-version: ${{ matrix.go }} @@ -33,7 +33,7 @@ jobs: uses: pion/.goassets/.github/workflows/test-i386.reusable.yml@master strategy: matrix: - go: ["1.22", "1.21"] # auto-update/supported-go-version-list + go: ["1.23", "1.22"] # auto-update/supported-go-version-list fail-fast: false with: go-version: ${{ matrix.go }} @@ -41,5 +41,5 @@ jobs: test-wasm: uses: pion/.goassets/.github/workflows/test-wasm.reusable.yml@master with: - go-version: "1.22" # auto-update/latest-go-version + go-version: "1.23" # auto-update/latest-go-version secrets: inherit diff --git a/.golangci.yml b/.golangci.yml index e06de4d3..a3235bec 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,9 @@ # SPDX-FileCopyrightText: 2023 The Pion community # SPDX-License-Identifier: MIT +run: + timeout: 5m + linters-settings: govet: enable: @@ -48,7 +51,7 @@ linters: - goconst # Finds repeated strings that could be replaced by a constant - gocritic # The most opinionated Go source code linter - godox # Tool for detection of FIXME, TODO and other comment keywords - - goerr113 # Golang linter to check the errors handling expressions + - err113 # Golang linter to check the errors handling expressions - gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification - gofumpt # Gofumpt checks whether code was gofumpt-ed. - goheader # Checks is file header matches to pattern @@ -83,17 +86,14 @@ linters: - depguard # Go linter that checks if package imports are in a list of acceptable packages - containedctx # containedctx is a linter that detects struct contained context.Context field - cyclop # checks function and package cyclomatic complexity - - exhaustivestruct # Checks if all struct's fields are initialized - funlen # Tool for detection of long functions - gocyclo # Computes and checks the cyclomatic complexity of functions - godot # Check if comments end in a period - gomnd # An analyzer to detect magic numbers. - - ifshort # Checks that your code uses short syntax for if-statements whenever possible - ireturn # Accept Interfaces, Return Concrete Types - lll # Reports long lines - maintidx # maintidx measures the maintainability index of each function. - makezero # Finds slice declarations with non-zero initial length - - maligned # Tool to detect Go structs that would take less memory if their fields were sorted - nakedret # Finds naked returns in functions greater than a specified function length - nestif # Reports deeply nested if statements - nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity diff --git a/server_config.go b/server_config.go index eaa7a258..eab2988e 100644 --- a/server_config.go +++ b/server_config.go @@ -100,7 +100,7 @@ type AuthHandler func(username, realm string, srcAddr net.Addr) (key []byte, ok func GenerateAuthKey(username, realm, password string) []byte { // #nosec h := md5.New() - fmt.Fprint(h, strings.Join([]string{username, realm, password}, ":")) + fmt.Fprint(h, strings.Join([]string{username, realm, password}, ":")) // nolint: errcheck return h.Sum(nil) }