Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
a04c4ba4
Commit
a04c4ba4
authored
Mar 15, 2018
by
ryan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow any database for influx proxy
parent
ad88e539
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
pkg/api/pluginproxy/ds_proxy.go
+0
-6
No files found.
pkg/api/pluginproxy/ds_proxy.go
View file @
a04c4ba4
...
@@ -178,12 +178,6 @@ func (proxy *DataSourceProxy) getDirector() func(req *http.Request) {
...
@@ -178,12 +178,6 @@ func (proxy *DataSourceProxy) getDirector() func(req *http.Request) {
}
}
func
(
proxy
*
DataSourceProxy
)
validateRequest
()
error
{
func
(
proxy
*
DataSourceProxy
)
validateRequest
()
error
{
if
proxy
.
ds
.
Type
==
m
.
DS_INFLUXDB
{
if
proxy
.
ctx
.
Query
(
"db"
)
!=
proxy
.
ds
.
Database
{
return
errors
.
New
(
"Datasource is not configured to allow this database"
)
}
}
if
!
checkWhiteList
(
proxy
.
ctx
,
proxy
.
targetUrl
.
Host
)
{
if
!
checkWhiteList
(
proxy
.
ctx
,
proxy
.
targetUrl
.
Host
)
{
return
errors
.
New
(
"Target url is not a valid target"
)
return
errors
.
New
(
"Target url is not a valid target"
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment