File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ type UnboundedOutboundOptions struct {
2323 GenesisAddr string `json:"genesis_addr,omitempty"`
2424 NATFailTimeout int `json:"nat_fail_timeout,omitempty"`
2525 STUNBatchSize int `json:"stun_batch_size,omitempty"`
26+ STUNBatch func (size uint32 ) (batch []string , err error )
2627 Tag string `json:"tag,omitempty"`
2728 Patience int `json:"patience,omitempty"`
2829 ErrorBackoff int `json:"error_backoff,omitempty"`
Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ func NewOutbound(
9292 rtcOpt .STUNBatchSize = uint32 (options .STUNBatchSize )
9393 }
9494
95+ if options .STUNBatch != nil {
96+ rtcOpt .STUNBatch = options .STUNBatch
97+ }
98+
9599 if options .Tag != "" {
96100 rtcOpt .Tag = options .Tag
97101 }
You can’t perform that action at this time.
0 commit comments