Fix some plugins

This commit is contained in:
Makis Maropoulos 2016-06-17 02:01:42 +03:00
parent 648bd0d335
commit 2dac93104a
2 changed files with 11 additions and 3 deletions

View File

@ -18,13 +18,21 @@ package main
import (
"github.com/kataras/iris"
"github.com/kataras/iris/config"
"github.com/kataras/iris/plugin/editor"
)
func main(){
e := editor.New("username","password").Port(4444).Dir("/path/to/the/client/side/directory")
editorConfig:= config.Editor {
Host: "127.0.0.1",
Port: 4444,
WorkingDir: "/path/to/the/client/side/directory",
Username: "myusername",
Password: "mypassword"
iris.Plugins.Add(e)
}
iris.Plugins.Add(editor.New(editorConfig))
iris.Get("/", func (ctx *iris.Context){})

View File

@ -89,7 +89,7 @@ func (i *iriscontrol) initializeChild() {
}
})
go i.child.Listen(i.parent.HTTPServer.VirtualHostname() + strconv.Itoa(i.port))
go i.child.Listen(i.parent.HTTPServer.VirtualHostname() + ":" + strconv.Itoa(i.port))
}
func (i *iriscontrol) parentIsRunning() bool {