Skip to content

Commit

Permalink
Update copyright declaration for the new year
Browse files Browse the repository at this point in the history
  • Loading branch information
nirui committed Jan 19, 2023
1 parent 6bfa907 commit a7286b4
Show file tree
Hide file tree
Showing 133 changed files with 174 additions and 139 deletions.
2 changes: 1 addition & 1 deletion application/application.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/command/commander.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/command/commands.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/command/fsm.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/command/handler.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/command/handler_echo_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/command/handler_stream_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/command/handler_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/command/header.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
6 changes: 4 additions & 2 deletions application/command/streams.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down Expand Up @@ -243,7 +243,9 @@ func (w StreamResponder) Send(marker byte, data []byte, buf []byte) error {
// SendManual sends the data without automatical segmentation. It will construct
// the data package directly using the given `data` buffer, that is, the first
// n bytes of the given `data` will be used to setup headers. It is the caller's
// responsibility to leave n bytes of space so no meaningful data will be over
//
// responsibility to leave n bytes of space so no meaningful data will be over
//
// written. The number n can be acquired by calling .HeaderSize() method.
func (w StreamResponder) SendManual(marker byte, data []byte) error {
dataLen := len(data)
Expand Down
2 changes: 1 addition & 1 deletion application/command/streams_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
7 changes: 3 additions & 4 deletions application/commands/address.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand All @@ -25,7 +25,7 @@ import (
"github.com/nirui/sshwifty/application/rw"
)

//Errors
// Errors
var (
ErrAddressParseBufferTooSmallForHeader = errors.New(
"buffer space was too small to parse the address header")
Expand Down Expand Up @@ -78,8 +78,7 @@ type Address struct {
// - IPv4Addr: 01 IPv4 Address, carries 4 bytes of Address data
// - IPv6Addr: 10 IPv6 Address, carries 16 bytes Address data
// - HostnameAddr: 11 Host name string, length of Address data is indicated
// by the remainer of the byte (11-- ----). maxlen = 63
//
// by the remainer of the byte (11-- ----). maxlen = 63
func ParseAddress(reader rw.ReaderFunc, buf []byte) (Address, error) {
if len(buf) < 3 {
return Address{}, ErrAddressParseBufferTooSmallForHeader
Expand Down
2 changes: 1 addition & 1 deletion application/commands/address_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/commands/commands.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/commands/integer.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/commands/integer_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/commands/ssh.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/commands/string.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/commands/string_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/commands/telnet.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/configuration/common.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/configuration/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/configuration/loader.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/configuration/loader_direct.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/configuration/loader_enviro.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/configuration/loader_file.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/configuration/loader_redundant.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/configuration/string.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/configuration/string_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/controller/base.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/controller/common.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/controller/common_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/controller/controller.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/controller/error.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/controller/failure.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/controller/home.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/controller/socket.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/controller/socket_verify.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/controller/static.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
4 changes: 2 additions & 2 deletions application/controller/static_page_generater/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down Expand Up @@ -39,7 +39,7 @@ const (
const (
staticListHeader = `// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/log/ditch.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/log/log.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/log/writer.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/log/writer_nodebug.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
2 changes: 1 addition & 1 deletion application/network/conn.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sshwifty - A Web SSH client
//
// Copyright (C) 2019-2022 Ni Rui <[email protected]>
// Copyright (C) 2019-2023 Ni Rui <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
Expand Down
Loading

0 comments on commit a7286b4

Please sign in to comment.