Jelajahi Sumber

allow any database for influx proxy

ryan 7 tahun lalu
induk
melakukan
a04c4ba454
1 mengubah file dengan 0 tambahan dan 6 penghapusan
  1. 0 6
      pkg/api/pluginproxy/ds_proxy.go

+ 0 - 6
pkg/api/pluginproxy/ds_proxy.go

@@ -178,12 +178,6 @@ func (proxy *DataSourceProxy) getDirector() func(req *http.Request) {
 }
 
 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) {
 		return errors.New("Target url is not a valid target")
 	}