mirror of
https://github.com/yudai/gotty.git
synced 2026-02-23 08:24:07 +01:00
Update import strings to reference this fork name
Merge in manually the fixes from PR #197, never accepted Update .gitignore Update the README with a Changelog for the fork
This commit is contained in:
parent
a080c85cbc
commit
89a27a859e
9 changed files with 22 additions and 12 deletions
|
|
@ -18,9 +18,9 @@ import (
|
|||
"github.com/gorilla/websocket"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/yudai/gotty/pkg/homedir"
|
||||
"github.com/yudai/gotty/pkg/randomstring"
|
||||
"github.com/yudai/gotty/webtty"
|
||||
"github.com/nimbix/gotty/pkg/homedir"
|
||||
"github.com/nimbix/gotty/pkg/randomstring"
|
||||
"github.com/nimbix/gotty/webtty"
|
||||
)
|
||||
|
||||
// Server provides a webtty HTTP endpoint.
|
||||
|
|
@ -97,7 +97,10 @@ func (server *Server) Run(ctx context.Context, options ...RunOption) error {
|
|||
|
||||
path := "/"
|
||||
if server.options.EnableRandomUrl {
|
||||
path = "/" + randomstring.Generate(server.options.RandomUrlLength) + "/"
|
||||
path += randomstring.Generate(server.options.RandomUrlLength) + "/"
|
||||
}
|
||||
if server.options.CustomUrl != "" {
|
||||
path += server.options.CustomUrl + "/"
|
||||
}
|
||||
|
||||
handlers := server.setupHandlers(cctx, cancel, path, counter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue