diff --git a/modules/web/web.js b/modules/web/web.js index 05c7bae..d860f32 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -41,10 +41,13 @@ var webInterface = function(dbot) { this.api = { 'getUrl': function(path) { + console.log(path); if(this.config.externalPath) { + console.log('external'); return this.config.externalPath + '/' + path; } else { - return 'http://' + this.config.webHost + ':' + port + '/' + path; + console.log('internal'); + return 'http://' + this.config.webHost + ':' + this.config.webPort + '/' + path; } } };