cleanup
This commit is contained in:
parent
b870e2707d
commit
c34a47550f
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user