mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
obfs: compatible with some server implementation in tls mode
This commit is contained in:
1 parent
51fedc8653
commit
6ba9e1f5e8
5 files changed
+19
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user