mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Remove unused stunURL and relayURL, unused except for parsing tests.
This commit is contained in:
parent
5440a4ba16
commit
dbe1ef4fa5
1 changed files with 2 additions and 4 deletions
|
@ -30,9 +30,7 @@ type snowflakeOptions struct {
|
|||
broker string
|
||||
brokerURL *url.URL
|
||||
stun string
|
||||
stunURL *url.URL
|
||||
relay string
|
||||
relayURL *url.URL
|
||||
}
|
||||
|
||||
const (
|
||||
|
@ -320,11 +318,11 @@ func main() {
|
|||
if err != nil {
|
||||
log.Fatalf("invalid broker url: %s", err)
|
||||
}
|
||||
opt.stunURL, err = url.Parse(opt.stun)
|
||||
_, err = url.Parse(opt.stun)
|
||||
if err != nil {
|
||||
log.Fatalf("invalid stun url: %s", err)
|
||||
}
|
||||
opt.relayURL, err = url.Parse(opt.relay)
|
||||
_, err = url.Parse(opt.relay)
|
||||
if err != nil {
|
||||
log.Fatalf("invalid relay url: %s", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue