merge develop into master #21

Merged
JakeHillion merged 149 commits from develop into master 2021-05-12 00:22:59 +01:00
5 changed files with 21 additions and 9 deletions
Showing only changes of commit 2b87d4cd7e - Show all commits

View File

@ -1,8 +1,14 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: format
image: golang:1.15
commands:
- bash -c "gofmt -l . | wc -l | cmp -s <(echo 0) || (gofmt -l . && exit 1)"
- name: install
image: golang:1.15
environment:
@ -47,4 +53,10 @@ steps:
volumes:
- name: cache
temp: {}
temp: { }
---
kind: signature
hmac: 8c21312bcfbaa9b7d2d3c31b1a5c13b54b4ecd1da853aa66a8ed11d72154fcca
...

View File

@ -88,11 +88,11 @@ func buildUdp(p *proxy.Proxy, peer Peer) error {
var c func() udp.Congestion
switch peer.Congestion {
case "None":
c = func() udp.Congestion {return congestion.NewNone()}
c = func() udp.Congestion { return congestion.NewNone() }
default:
fallthrough
case "NewReno":
c = func() udp.Congestion {return congestion.NewNewReno()}
c = func() udp.Congestion { return congestion.NewNewReno() }
}
if peer.RemoteHost != "" {