mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
multiple arbitrary ice servers can be passed as client flag (close #24)
This commit is contained in:
parent
4e6bba559a
commit
9daa6c4b71
3 changed files with 8 additions and 6 deletions
|
@ -19,8 +19,10 @@ func (i *IceServerList) String() string {
|
|||
}
|
||||
|
||||
func (i *IceServerList) Set(s string) error {
|
||||
log.Println("IceServerList:")
|
||||
for _, server := range strings.Split(s, ",") {
|
||||
// TODO: STUN / TURN url format validation?
|
||||
log.Println(server)
|
||||
option := webrtc.OptionIceServer(server)
|
||||
*i = append(*i, option)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue