Compare commits

..

2 Commits

Author SHA1 Message Date
2817417eca Add copyright headers 2024-08-04 16:35:51 -07:00
fa60e18c22 Run formatter 2024-08-04 16:35:51 -07:00
6 changed files with 52 additions and 10 deletions

21
auth.go
View File

@ -1,3 +1,24 @@
/*
* 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 (

View File

@ -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")
} }
var taskName = args[2] 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 {
} }
} }
var taskName = args[3] taskName := args[3]
if taskName == "" { if taskName == "" {
taskName = group.Tasks[0].Name taskName = group.Tasks[0].Name
} }

21
keys.go
View File

@ -1,3 +1,24 @@
/*
* 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 (