update ftcp

This commit is contained in:
ginuerzh
2022-03-18 21:19:12 +08:00
parent 0f1f7790c5
commit 6a6367b8d1
7 changed files with 178 additions and 132 deletions

View File

@ -4,15 +4,8 @@ import (
mdata "github.com/go-gost/core/metadata"
)
type metadata struct {
retryCount int
}
type metadata struct{}
func (h *redirectHandler) parseMetadata(md mdata.Metadata) (err error) {
const (
retryCount = "retry"
)
h.md.retryCount = mdata.GetInt(md, retryCount)
return
}