View definition

(MigrateRepoForm).ParseRemoteAddr

Defined in github.com/gogits/gogs/modules/auth/repo_form.go

Description

ParseRemoteAddr checks if given remote address is valid, and returns composed URL with needed username and passowrd. It also checks if given user has permission when remote address is actually a local path.