1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-07-14 16:50:44 +08:00
parent cf79f573e7
commit d00650bbb0

View File

@ -475,7 +475,7 @@ func init() {
if insteadof != "" {
remoteURL = insteadof + path.Base(remoteURL)
}
if u, ok := list[kit.ParseURL(value[ORIGIN]).Host]; !ok {
if u, ok := list[kit.ParseURL(remoteURL).Host]; !ok {
return errors.New("not found userinfo")
} else if password, ok := u.User.Password(); !ok {
return errors.New("not found password")