Skip to content

Commit

Permalink
mod: rmv quic-go for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Jul 6, 2023
1 parent e2b0c30 commit 1fe34b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ require (
github.com/cloudflare/circl v1.3.3
github.com/crazy-max/xgo v0.17.0
github.com/elazarl/goproxy v0.0.0-20221015165544-a0805db90819
github.com/quic-go/quic-go v0.36.1
github.com/txthinking/socks5 v0.0.0-20220615051428-39268faee3e6
github.com/txthinking/x v0.0.0-20210326105829-476fab902fbe
golang.org/x/mobile v0.0.0-20220518205345-8578da9835fd
Expand Down
8 changes: 6 additions & 2 deletions intra/ipn/piph2.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"github.com/celzero/firestack/intra/protect"
"github.com/celzero/firestack/intra/settings"
"github.com/celzero/firestack/intra/split"
"github.com/quic-go/quic-go/http3"
"golang.org/x/net/http2"
)

Expand Down Expand Up @@ -239,7 +238,12 @@ func NewPipProxy(id string, ctl protect.Controller, po *settings.ProxyOptions) (
}

if trType == "h3" {
t.client.Transport = &http3.RoundTripper{}
// github.com/quic-go/quic-go v0.36.1
// t.client.Transport = &http3.RoundTripper{}
log.W("piph2: h3 not supported yet")
t.client.Transport = &http2.Transport{
DialTLS: t.dialtls,
}
} else if trType == "h2" {
// h2 is duplex: github.com/golang/go/issues/19653#issuecomment-341539160
t.client.Transport = &http2.Transport{
Expand Down

0 comments on commit 1fe34b1

Please sign in to comment.