Skip to content

Commit

Permalink
Vendor ooni/netx@4f8d645bce and use it (#380)
Browse files Browse the repository at this point in the history
The vendoring has omitted files we don't care about. The source code is
not changed. The README.md and DESIGN.md file have been updated.

Part of #302.
  • Loading branch information
bassosimone authored Mar 3, 2020
1 parent 6740c6e commit d9d546e
Show file tree
Hide file tree
Showing 69 changed files with 7,080 additions and 19 deletions.
2 changes: 1 addition & 1 deletion experiment/sniblocking/sniblocking.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import (
"net/url"
"time"

"github.com/ooni/netx/modelx"
"github.com/ooni/probe-engine/experiment"
"github.com/ooni/probe-engine/experiment/handler"
"github.com/ooni/probe-engine/internal/netxlogger"
"github.com/ooni/probe-engine/internal/oonidatamodel"
"github.com/ooni/probe-engine/internal/oonitemplates"
"github.com/ooni/probe-engine/model"
"github.com/ooni/probe-engine/netx/modelx"
"github.com/ooni/probe-engine/session"
)

Expand Down
2 changes: 1 addition & 1 deletion experiment/telegram/telegram_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"testing"

"github.com/apex/log"
"github.com/ooni/netx/modelx"
"github.com/ooni/probe-engine/experiment/handler"
"github.com/ooni/probe-engine/internal/kvstore"
"github.com/ooni/probe-engine/internal/oonitemplates"
"github.com/ooni/probe-engine/model"
"github.com/ooni/probe-engine/netx/modelx"
"github.com/ooni/probe-engine/session"
)

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ require (
github.com/m-lab/go v1.2.2
github.com/m-lab/ndt7-client-go v0.2.0
github.com/marusama/semaphore v0.0.0-20171214154724-565ffd8e868a // indirect
github.com/miekg/dns v1.1.27
github.com/montanaflynn/stats v0.6.3
github.com/neubot/dash v0.4.1
github.com/ooni/netx v0.0.0-20200211124352-4f8d645bce64
github.com/oschwald/geoip2-golang v1.4.0
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
github.com/pborman/getopt v0.0.0-20190409184431-ee0cd42419d3
Expand All @@ -57,6 +57,6 @@ require (
go.uber.org/multierr v1.1.1-0.20180122172545-ddea229ff1df // indirect
go.uber.org/zap v1.9.2-0.20180814183419-67bc79d13d15 // indirect
golang.org/x/crypto v0.0.0-20200214034016-1d94cc7ab1c6 // indirect
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa // indirect
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa
golang.org/x/sys v0.0.0-20200219091948-cb0a6d8edb6c // indirect
)
6 changes: 0 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ github.com/onsi/gomega v1.5.0 h1:izbySO9zDPmjJ8rDjLvkA2zJHIo+HkYXHnf7eN7SSyo=
github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME=
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/ooni/netx v0.0.0-20200211124352-4f8d645bce64 h1:rLXhIycJB+yGJPMRY1tP4KzYqd/EvhrP8x7CjbeKmJc=
github.com/ooni/netx v0.0.0-20200211124352-4f8d645bce64/go.mod h1:vTJ7nYH2j51lX8yvhdLaHscvwz1GvWoiB26jYKEmqyA=
github.com/openconfig/gnmi v0.0.0-20190823184014-89b2bf29312c/go.mod h1:t+O9It+LKzfOAhKTT5O0ehDix+MTqbtT0T9t+7zzOvc=
github.com/openconfig/reference v0.0.0-20190727015836-8dfd928c9696/go.mod h1:ym2A+zigScwkSEb/cVQB0/ZMpU3rqiH6X7WRRsxgOGw=
github.com/oschwald/geoip2-golang v1.4.0 h1:5RlrjCgRyIGDz/mBmPfnAF4h8k0IAcRv9PvrpOfz+Ug=
Expand Down Expand Up @@ -369,8 +367,6 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876 h1:sKJQZMuxjOAR/Uo2LBfU90onWEf1dF4C+0hPJCc9Mpc=
golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200214034016-1d94cc7ab1c6 h1:Sy5bstxEqwwbYs6n0/pBuxKENqOeZUgD45Gp3Q3pqLg=
golang.org/x/crypto v0.0.0-20200214034016-1d94cc7ab1c6/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
Expand Down Expand Up @@ -456,8 +452,6 @@ golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191224085550-c709ea063b76/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200107162124-548cf772de50 h1:YvQ10rzcqWXLlJZ3XCUoO25savxmscf4+SC+ZqiCHhA=
golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200219091948-cb0a6d8edb6c h1:jceGD5YNJGgGMkJz79agzOln1K9TaZUjv5ird16qniQ=
golang.org/x/sys v0.0.0-20200219091948-cb0a6d8edb6c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
Expand Down
2 changes: 1 addition & 1 deletion internal/httpx/httpx.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"crypto/tls"
"crypto/x509"
"io/ioutil"
"net"
"net/http"
"net/url"
"net"
"time"

"github.com/ooni/probe-engine/internal/httplog"
Expand Down
2 changes: 1 addition & 1 deletion internal/netxlogger/netxlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/http"
"strings"

"github.com/ooni/netx/modelx"
"github.com/ooni/probe-engine/internal/tlsx"
"github.com/ooni/probe-engine/netx/modelx"
)

// Logger is the interface we expect from a logger
Expand Down
2 changes: 1 addition & 1 deletion internal/netxlogger/netxlogger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/apex/log"
"github.com/apex/log/handlers/discard"
"github.com/ooni/netx/httpx"
"github.com/ooni/probe-engine/netx/httpx"
)

func TestIntegration(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/oonidatamodel/oonidatamodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"strings"
"unicode/utf8"

"github.com/ooni/netx/modelx"
"github.com/ooni/probe-engine/internal/oonitemplates"
"github.com/ooni/probe-engine/internal/tlsx"
"github.com/ooni/probe-engine/netx/modelx"
)

// TCPConnectStatus contains the TCP connect status.
Expand Down
2 changes: 1 addition & 1 deletion internal/oonidatamodel/oonidatamodel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"testing"
"time"

"github.com/ooni/netx/modelx"
"github.com/ooni/probe-engine/internal/oonitemplates"
"github.com/ooni/probe-engine/netx/modelx"
)

func TestUnitNewTCPConnectListEmpty(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions internal/oonitemplates/oonitemplates.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (

goptlib "git.torproject.org/pluggable-transports/goptlib.git"
"github.com/m-lab/go/rtx"
"github.com/ooni/netx"
"github.com/ooni/netx/handlers"
"github.com/ooni/netx/httpx"
"github.com/ooni/netx/modelx"
"github.com/ooni/probe-engine/netx"
"github.com/ooni/probe-engine/netx/handlers"
"github.com/ooni/probe-engine/netx/httpx"
"github.com/ooni/probe-engine/netx/modelx"
"gitlab.com/yawning/obfs4.git/transports"
obfs4base "gitlab.com/yawning/obfs4.git/transports/base"
)
Expand Down
Loading

0 comments on commit d9d546e

Please sign in to comment.