add reload and plugin support for hop
This commit is contained in:
@ -74,6 +74,7 @@ func (l *phtListener) Init(md md.Metadata) (err error) {
|
||||
pht_util.BacklogServerOption(l.md.backlog),
|
||||
pht_util.PathServerOption(l.md.authorizePath, l.md.pushPath, l.md.pullPath),
|
||||
pht_util.LoggerServerOption(l.options.Logger),
|
||||
pht_util.MPTCPServerOption(l.md.mptcp),
|
||||
)
|
||||
|
||||
go func() {
|
||||
|
@ -19,6 +19,7 @@ type metadata struct {
|
||||
pushPath string
|
||||
pullPath string
|
||||
backlog int
|
||||
mptcp bool
|
||||
}
|
||||
|
||||
func (l *phtListener) parseMetadata(md mdata.Metadata) (err error) {
|
||||
@ -48,5 +49,6 @@ func (l *phtListener) parseMetadata(md mdata.Metadata) (err error) {
|
||||
l.md.backlog = defaultBacklog
|
||||
}
|
||||
|
||||
l.md.mptcp = mdutil.GetBool(md, "mptcp")
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user