mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Remove a level of indentation in server.
This commit is contained in:
parent
d8411816c4
commit
8378f85952
1 changed files with 18 additions and 18 deletions
|
@ -256,8 +256,11 @@ func main() {
|
||||||
|
|
||||||
listeners := make([]net.Listener, 0)
|
listeners := make([]net.Listener, 0)
|
||||||
for _, bindaddr := range ptInfo.Bindaddrs {
|
for _, bindaddr := range ptInfo.Bindaddrs {
|
||||||
switch bindaddr.MethodName {
|
if bindaddr.MethodName != ptMethodName {
|
||||||
case ptMethodName:
|
pt.SmethodError(bindaddr.MethodName, "no such method")
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
var ln net.Listener
|
var ln net.Listener
|
||||||
args := pt.Args{}
|
args := pt.Args{}
|
||||||
if disableTLS {
|
if disableTLS {
|
||||||
|
@ -273,9 +276,6 @@ func main() {
|
||||||
}
|
}
|
||||||
pt.SmethodArgs(bindaddr.MethodName, ln.Addr(), args)
|
pt.SmethodArgs(bindaddr.MethodName, ln.Addr(), args)
|
||||||
listeners = append(listeners, ln)
|
listeners = append(listeners, ln)
|
||||||
default:
|
|
||||||
pt.SmethodError(bindaddr.MethodName, "no such method")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
pt.SmethodsDone()
|
pt.SmethodsDone()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue