mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 08:06:46 +00:00
16 lines
333 B
Go
16 lines
333 B
Go
package outbound
|
|
|
|
import "github.com/metacubex/mihomo/transport/jls"
|
|
|
|
type JLSOptions struct {
|
|
Username string `proxy:"username"`
|
|
Password string `proxy:"password"`
|
|
}
|
|
|
|
func (o JLSOptions) Parse() (*jls.Config, error) {
|
|
if o.Username == "" && o.Password == "" {
|
|
return nil, nil
|
|
}
|
|
return jls.NewConfig(o.Username, o.Password)
|
|
}
|