cleanup
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2021-01-23 15:59:37 +00:00
parent b870e2707d
commit c34a47550f

View File

@ -56,13 +56,11 @@ func (c Configuration) Build() (*proxy.Proxy, error) {
for _, peer := range c.Peers {
switch peer.Method {
case "TCP":
err := buildTcp(p, peer, g, v)
if err != nil {
if err := buildTcp(p, peer, g, v); err != nil {
return nil, err
}
case "UDP":
err := buildUdp(p, peer, g, v)
if err != nil {
if err := buildUdp(p, peer, g, v); err != nil {
return nil, err
}
}