Remove duplicate fields and set default SDK dir.
[src/xds/xds-server.git] / lib / apiv1 / agent.go
index d8feb61..b693608 100644 (file)
@@ -27,7 +27,7 @@ func (s *APIService) getXdsAgentInfo(c *gin.Context) {
 
        res := XDSAgentInfo{}
        tarballURL := "assets/xds-agent-tarballs"
-       tarballDir := filepath.Join(s.cfg.WebAppDir, "assets", "xds-agent-tarballs")
+       tarballDir := filepath.Join(s.cfg.FileConf.WebAppDir, "assets", "xds-agent-tarballs")
        if common.Exists(tarballDir) {
                files, err := filepath.Glob(path.Join(tarballDir, "xds-agent_*.zip"))
                if err != nil {