mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-20 20:47:16 +02:00
add support for TCP routes (#1695)
This commit is contained in:
parent
64816720c8
commit
ad828c6e84
7 changed files with 86 additions and 13 deletions
|
@ -257,7 +257,7 @@ func (p *Policy) Validate() error {
|
|||
}
|
||||
|
||||
// Make sure there's no path set on the from url
|
||||
if !(source.Path == "" || source.Path == "/") {
|
||||
if (source.Scheme == "http" || source.Scheme == "https") && !(source.Path == "" || source.Path == "/") {
|
||||
return fmt.Errorf("config: policy source url (%s) contains a path, but it should be set using the path field instead",
|
||||
source.String())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue