mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:04:02 +03:00
Remove wrap prefix
This commit is contained in:
@@ -28,7 +28,7 @@ const (
|
||||
tgUserAgent = "mtg"
|
||||
)
|
||||
|
||||
var middleTelegramProxyConfigSplitter *regexp.Regexp
|
||||
var middleTelegramProxyConfigSplitter = regexp.MustCompile(`\s+`)
|
||||
|
||||
type middleTelegramCaller struct {
|
||||
baseTelegram
|
||||
@@ -38,7 +38,7 @@ type middleTelegramCaller struct {
|
||||
httpClient *http.Client
|
||||
}
|
||||
|
||||
func (t *middleTelegramCaller) Dial(connID string, connOpts *mtproto.ConnectionOpts) (wrappers.WrapStreamReadWriteCloser, error) {
|
||||
func (t *middleTelegramCaller) Dial(connID string, connOpts *mtproto.ConnectionOpts) (wrappers.StreamReadWriteCloser, error) {
|
||||
dc := connOpts.DC
|
||||
if dc == 0 {
|
||||
dc = 1
|
||||
@@ -150,7 +150,3 @@ func (t *middleTelegramCaller) call(url string) (*http.Response, error) {
|
||||
|
||||
return t.httpClient.Do(req)
|
||||
}
|
||||
|
||||
func init() {
|
||||
middleTelegramProxyConfigSplitter = regexp.MustCompile(`\s+`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user