fix proxy protocol
This commit is contained in:
@ -10,16 +10,19 @@ import (
|
||||
type metadata struct {
|
||||
key string
|
||||
readTimeout time.Duration
|
||||
hash string
|
||||
}
|
||||
|
||||
func (h *ssHandler) parseMetadata(md mdata.Metadata) (err error) {
|
||||
const (
|
||||
key = "key"
|
||||
readTimeout = "readTimeout"
|
||||
hash = "hash"
|
||||
)
|
||||
|
||||
h.md.key = mdutil.GetString(md, key)
|
||||
h.md.readTimeout = mdutil.GetDuration(md, readTimeout)
|
||||
h.md.hash = mdutil.GetString(md, hash)
|
||||
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user