Compare commits
No commits in common. "2817417eca8a36c0d13012b57013b7ebea9e14e5" and "4590fdadbe6625c26149ecbda00187fdb7845b68" have entirely different histories.
2817417eca
...
4590fdadbe
21
auth.go
21
auth.go
@ -1,24 +1,3 @@
|
|||||||
/*
|
|
||||||
* Seashell - SSH server with virtual hosts and username-based routing
|
|
||||||
*
|
|
||||||
* Copyright (C) 2024 Elara6331 <elara@elara.ws>
|
|
||||||
*
|
|
||||||
* This file is part of Seashell.
|
|
||||||
*
|
|
||||||
* Seashell is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as
|
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
|
||||||
* License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* Seashell is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with Seashell. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -150,7 +150,7 @@ func Nomad(route config.Route) router.Handler {
|
|||||||
return errors.New("task group not found")
|
return errors.New("task group not found")
|
||||||
}
|
}
|
||||||
|
|
||||||
taskName := args[2]
|
var taskName = args[2]
|
||||||
if taskName == "" {
|
if taskName == "" {
|
||||||
taskName = group.Tasks[0].Name
|
taskName = group.Tasks[0].Name
|
||||||
}
|
}
|
||||||
@ -189,7 +189,7 @@ func Nomad(route config.Route) router.Handler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
taskName := args[3]
|
var taskName = args[3]
|
||||||
if taskName == "" {
|
if taskName == "" {
|
||||||
taskName = group.Tasks[0].Name
|
taskName = group.Tasks[0].Name
|
||||||
}
|
}
|
||||||
|
21
keys.go
21
keys.go
@ -1,24 +1,3 @@
|
|||||||
/*
|
|
||||||
* Seashell - SSH server with virtual hosts and username-based routing
|
|
||||||
*
|
|
||||||
* Copyright (C) 2024 Elara6331 <elara@elara.ws>
|
|
||||||
*
|
|
||||||
* This file is part of Seashell.
|
|
||||||
*
|
|
||||||
* Seashell is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as
|
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
|
||||||
* License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* Seashell is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with Seashell. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
Reference in New Issue
Block a user