mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2026-06-09 00:12:27 +00:00
🎨 Modify some code
This commit is contained in:
+5
-1
@@ -32,7 +32,11 @@ func ParseVmess(proxy string) (model.Outbound, error) {
|
||||
case string:
|
||||
port, err = ParsePort(vmess.Port.(string))
|
||||
if err != nil {
|
||||
return model.Outbound{}, err
|
||||
return model.Outbound{}, &ParseError{
|
||||
Type: ErrInvalidPort,
|
||||
Message: err.Error(),
|
||||
Raw: proxy,
|
||||
}
|
||||
}
|
||||
case float64:
|
||||
port = uint16(vmess.Port.(float64))
|
||||
|
||||
Reference in New Issue
Block a user