obfs: compatible with some server implementation in tls mode

This commit is contained in:
nadoo committed 2018-12-16 13:28:24 +08:00
1 parent 51fedc8653
commit 6ba9e1f5e8
5 files changed
+19 -6

No files matched your search

+2 -2
View File
@@ -132,10 +132,10 @@ func (d *Dialer) NextDialer(dstAddr string) proxy.Dialer {
return d.nextForwarder(dstAddr)
}
// Priority returns the active priority of rrDialer
// Priority returns the active priority of dialer
func (d *Dialer) Priority() uint32 { return atomic.LoadUint32(&d.priority) }
// SetPriority sets the active priority of rrDialer
// SetPriority sets the active priority of daler
func (d *Dialer) SetPriority(p uint32) { atomic.StoreUint32(&d.priority, p) }
// initAvailable traverse d.fwdrs and init the available forwarder slice