merge develop into master #21
14
.drone.yml
14
.drone.yml
@ -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
|
||||
|
||||
...
|
||||
|
@ -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 != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user