diff --git a/plugin/editor/README.md b/plugin/editor/README.md index 04f9f6a8..c253ee84 100644 --- a/plugin/editor/README.md +++ b/plugin/editor/README.md @@ -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){}) diff --git a/plugin/iriscontrol/iriscontrol.go b/plugin/iriscontrol/iriscontrol.go index f30b0d21..8ff67eff 100644 --- a/plugin/iriscontrol/iriscontrol.go +++ b/plugin/iriscontrol/iriscontrol.go @@ -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 {