mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:44:03 +03:00
Direct proxy works
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package protocol
|
||||
|
||||
import "github.com/9seconds/mtg/conntypes"
|
||||
|
||||
type BaseProtocol struct {
|
||||
ConnectionType conntypes.ConnectionType
|
||||
ConnectionProtocol conntypes.ConnectionProtocol
|
||||
DC conntypes.DC
|
||||
}
|
||||
|
||||
func (b *BaseProtocol) GetConnectionType() conntypes.ConnectionType {
|
||||
return b.ConnectionType
|
||||
}
|
||||
|
||||
func (b *BaseProtocol) GetConnectionProtocol() conntypes.ConnectionProtocol {
|
||||
return b.ConnectionProtocol
|
||||
}
|
||||
|
||||
func (b *BaseProtocol) GetDC() conntypes.DC {
|
||||
return b.DC
|
||||
}
|
||||
Reference in New Issue
Block a user