Skip to content

Commit

Permalink
hysteria2: fix support both string and json
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 authored Jan 8, 2025
1 parent e553174 commit 040b26a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions option/hysteria2.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func (m *Hysteria2Masquerade) UnmarshalJSON(bytes []byte) error {
default:
return E.New("unknown masquerade URL scheme: ", masqueradeURL.Scheme)
}
return nil
}
err = json.Unmarshal(bytes, (*_Hysteria2Masquerade)(m))
if err != nil {
Expand Down

0 comments on commit 040b26a

Please sign in to comment.