Skip to content

Commit

Permalink
update to latest; adapt Clash change
Browse files Browse the repository at this point in the history
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
  • Loading branch information
wongsyrone committed Feb 3, 2021
1 parent 16019da commit 72ba215
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions clash/clash.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
C "github.com/Dreamacro/clash/constant"
_ "github.com/Dreamacro/clash/hub"
"github.com/Dreamacro/clash/hub/executor"
"github.com/Dreamacro/clash/tunnel"
"github.com/Dreamacro/clash/tunnel/statistic"

log "github.com/sirupsen/logrus"
)
Expand Down Expand Up @@ -61,7 +61,7 @@ func IsRunning() bool {
}

func Stop() {
snapshot := tunnel.DefaultManager.Snapshot()
snapshot := statistic.DefaultManager.Snapshot()
for _, c := range snapshot.Connections {
err := c.Close()
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module github.com/trojan-gfw/igniter-go-libs

go 1.15

replace github.com/eycorsican/go-tun2socks => github.com/trojan-gfw/go-tun2socks v1.16.3-0.20210118123453-5ac3f4385ff1
replace github.com/eycorsican/go-tun2socks => github.com/trojan-gfw/go-tun2socks v1.16.3-0.20210203134439-7723190ace59

replace github.com/Dreamacro/clash => github.com/trojan-gfw/clash v0.19.1-0.20210118123643-f84665fe97f2
replace github.com/Dreamacro/clash => github.com/trojan-gfw/clash v0.19.1-0.20210203134900-f91f6cda747b

require (
github.com/Dreamacro/clash v0.0.0
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/trojan-gfw/clash v0.19.1-0.20210118123643-f84665fe97f2 h1:utbXHAfcIR0k1h05YuOo1r+TloKdzhR1U0011gTDEzU=
github.com/trojan-gfw/clash v0.19.1-0.20210118123643-f84665fe97f2/go.mod h1:alA8QdA6/zm9ZzK1RFK9Jq1wORcRSLHlwkDY1SQp2+Y=
github.com/trojan-gfw/go-tun2socks v1.16.3-0.20210118123453-5ac3f4385ff1 h1:54XSGADW3sCJ8HqS8ZYafn/798Ny+oXT2F5M4ojAw18=
github.com/trojan-gfw/go-tun2socks v1.16.3-0.20210118123453-5ac3f4385ff1/go.mod h1:iSiwGqBOvfnMVjb+LVOCNygXUTGJ9gngIMp95x1sI9c=
github.com/trojan-gfw/clash v0.19.1-0.20210203134900-f91f6cda747b h1:SLZ2tfGmmjx6Ja10s/twWEBzdteaLRXDOEJLNFAk9bI=
github.com/trojan-gfw/clash v0.19.1-0.20210203134900-f91f6cda747b/go.mod h1:alA8QdA6/zm9ZzK1RFK9Jq1wORcRSLHlwkDY1SQp2+Y=
github.com/trojan-gfw/go-tun2socks v1.16.3-0.20210203134439-7723190ace59 h1:wTC9MbRwtp5zj+SJgcFhDQE7Qwpmf8FCe/wW0xV7SU4=
github.com/trojan-gfw/go-tun2socks v1.16.3-0.20210203134439-7723190ace59/go.mod h1:iSiwGqBOvfnMVjb+LVOCNygXUTGJ9gngIMp95x1sI9c=
github.com/v2pro/plz v0.0.0-20200805122259-422184e41b6e h1:Vo4wf8YcHE9G7jD6eDG7au3nLGosOxm/DxQO7JR5dAk=
github.com/v2pro/plz v0.0.0-20200805122259-422184e41b6e/go.mod h1:3gacX+hQo+xvl0vtLqCMufzxuNCwt4geAVOMt2LQYfE=
go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=
Expand Down

0 comments on commit 72ba215

Please sign in to comment.