Add write lock to shadowsocks aead writer

This commit is contained in:
世界 2022-08-18 23:02:36 +08:00
parent 5ca9d77176
commit 150df1ae8e
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
4 changed files with 6 additions and 6 deletions

2
go.mod
View file

@ -17,7 +17,7 @@ require (
github.com/oschwald/maxminddb-golang v1.10.0 github.com/oschwald/maxminddb-golang v1.10.0
github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522 github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522
github.com/sagernet/sing-dns v0.0.0-20220817120950-9246726e3e53 github.com/sagernet/sing-dns v0.0.0-20220817120950-9246726e3e53
github.com/sagernet/sing-shadowsocks v0.0.0-20220818151432-7cbd7d634617 github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6
github.com/sagernet/sing-tun v0.0.0-20220818020810-9c905191f63d github.com/sagernet/sing-tun v0.0.0-20220818020810-9c905191f63d
github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4 github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4
github.com/sagernet/smux v0.0.0-20220812084127-e2d085ee3939 github.com/sagernet/smux v0.0.0-20220812084127-e2d085ee3939

4
go.sum
View file

@ -157,8 +157,8 @@ github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522 h1:CtHJzJbaZ7icl+yL1
github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522/go.mod h1:QVsS5L/ZA2Q5UhQwLrn0Trw+msNd/NPGEhBKR/ioWiY= github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522/go.mod h1:QVsS5L/ZA2Q5UhQwLrn0Trw+msNd/NPGEhBKR/ioWiY=
github.com/sagernet/sing-dns v0.0.0-20220817120950-9246726e3e53 h1:0q0mWPlBRX6IYZE5kwihHyGfxW3KXFc6PwVcIdEL/ns= github.com/sagernet/sing-dns v0.0.0-20220817120950-9246726e3e53 h1:0q0mWPlBRX6IYZE5kwihHyGfxW3KXFc6PwVcIdEL/ns=
github.com/sagernet/sing-dns v0.0.0-20220817120950-9246726e3e53/go.mod h1:0Abtc6WibXWOEEWY2hYktyG+kRtTU/SidyF21zpCNqQ= github.com/sagernet/sing-dns v0.0.0-20220817120950-9246726e3e53/go.mod h1:0Abtc6WibXWOEEWY2hYktyG+kRtTU/SidyF21zpCNqQ=
github.com/sagernet/sing-shadowsocks v0.0.0-20220818151432-7cbd7d634617 h1:UR5kJD/Qhg/w+USNn94wDCtExpmAPfmj6WuVFfxi7n0= github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6 h1:JJfDeYYhWunvtxsU/mOVNTmFQmnzGx9dY034qG6G3g4=
github.com/sagernet/sing-shadowsocks v0.0.0-20220818151432-7cbd7d634617/go.mod h1:EX3RbZvrwAkPI2nuGa78T2iQXmrkT+/VQtskjou42xM= github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6/go.mod h1:EX3RbZvrwAkPI2nuGa78T2iQXmrkT+/VQtskjou42xM=
github.com/sagernet/sing-tun v0.0.0-20220818020810-9c905191f63d h1:JWshECcxjbRYRQWSUniwrmSm2WsItwdUgWAZbdFXAiM= github.com/sagernet/sing-tun v0.0.0-20220818020810-9c905191f63d h1:JWshECcxjbRYRQWSUniwrmSm2WsItwdUgWAZbdFXAiM=
github.com/sagernet/sing-tun v0.0.0-20220818020810-9c905191f63d/go.mod h1:cPTpq8lG4IsmI1VojmdsZn29Vgfj/6pbVzJ4stDjk64= github.com/sagernet/sing-tun v0.0.0-20220818020810-9c905191f63d/go.mod h1:cPTpq8lG4IsmI1VojmdsZn29Vgfj/6pbVzJ4stDjk64=
github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4 h1:2hLETh97+S4WnfMR27XyC7QVU1SH7FTNoCznP229YJU= github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4 h1:2hLETh97+S4WnfMR27XyC7QVU1SH7FTNoCznP229YJU=

View file

@ -11,7 +11,7 @@ require (
github.com/docker/go-connections v0.4.0 github.com/docker/go-connections v0.4.0
github.com/gofrs/uuid v4.2.0+incompatible github.com/gofrs/uuid v4.2.0+incompatible
github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522 github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522
github.com/sagernet/sing-shadowsocks v0.0.0-20220818151432-7cbd7d634617 github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6
github.com/spyzhov/ajson v0.7.1 github.com/spyzhov/ajson v0.7.1
github.com/stretchr/testify v1.8.0 github.com/stretchr/testify v1.8.0
golang.org/x/net v0.0.0-20220812174116-3211cb980234 golang.org/x/net v0.0.0-20220812174116-3211cb980234

View file

@ -179,8 +179,8 @@ github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522 h1:CtHJzJbaZ7icl+yL1
github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522/go.mod h1:QVsS5L/ZA2Q5UhQwLrn0Trw+msNd/NPGEhBKR/ioWiY= github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522/go.mod h1:QVsS5L/ZA2Q5UhQwLrn0Trw+msNd/NPGEhBKR/ioWiY=
github.com/sagernet/sing-dns v0.0.0-20220817120950-9246726e3e53 h1:0q0mWPlBRX6IYZE5kwihHyGfxW3KXFc6PwVcIdEL/ns= github.com/sagernet/sing-dns v0.0.0-20220817120950-9246726e3e53 h1:0q0mWPlBRX6IYZE5kwihHyGfxW3KXFc6PwVcIdEL/ns=
github.com/sagernet/sing-dns v0.0.0-20220817120950-9246726e3e53/go.mod h1:0Abtc6WibXWOEEWY2hYktyG+kRtTU/SidyF21zpCNqQ= github.com/sagernet/sing-dns v0.0.0-20220817120950-9246726e3e53/go.mod h1:0Abtc6WibXWOEEWY2hYktyG+kRtTU/SidyF21zpCNqQ=
github.com/sagernet/sing-shadowsocks v0.0.0-20220818151432-7cbd7d634617 h1:UR5kJD/Qhg/w+USNn94wDCtExpmAPfmj6WuVFfxi7n0= github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6 h1:JJfDeYYhWunvtxsU/mOVNTmFQmnzGx9dY034qG6G3g4=
github.com/sagernet/sing-shadowsocks v0.0.0-20220818151432-7cbd7d634617/go.mod h1:EX3RbZvrwAkPI2nuGa78T2iQXmrkT+/VQtskjou42xM= github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6/go.mod h1:EX3RbZvrwAkPI2nuGa78T2iQXmrkT+/VQtskjou42xM=
github.com/sagernet/sing-tun v0.0.0-20220818020810-9c905191f63d h1:JWshECcxjbRYRQWSUniwrmSm2WsItwdUgWAZbdFXAiM= github.com/sagernet/sing-tun v0.0.0-20220818020810-9c905191f63d h1:JWshECcxjbRYRQWSUniwrmSm2WsItwdUgWAZbdFXAiM=
github.com/sagernet/sing-tun v0.0.0-20220818020810-9c905191f63d/go.mod h1:cPTpq8lG4IsmI1VojmdsZn29Vgfj/6pbVzJ4stDjk64= github.com/sagernet/sing-tun v0.0.0-20220818020810-9c905191f63d/go.mod h1:cPTpq8lG4IsmI1VojmdsZn29Vgfj/6pbVzJ4stDjk64=
github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4 h1:2hLETh97+S4WnfMR27XyC7QVU1SH7FTNoCznP229YJU= github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4 h1:2hLETh97+S4WnfMR27XyC7QVU1SH7FTNoCznP229YJU=