cloudflared-mirror/sshserver/sshserver_windows.go

30 lines
595 B
Go
Raw Normal View History

//+build windows
package sshserver
import (
"errors"
"time"
2019-08-26 20:25:24 +00:00
"github.com/cloudflare/cloudflared/logger"
2019-08-26 20:25:24 +00:00
"github.com/cloudflare/cloudflared/sshlog"
)
2019-10-17 16:51:45 +00:00
const SSHPreambleLength = 2
type SSHServer struct{}
type SSHPreamble struct {
Destination string
JWT string
}
func New(_ sshlog.Manager, _ logger.Service, _, _, _, _ string, _ chan struct{}, _, _ time.Duration) (*SSHServer, error) {
return nil, errors.New("cloudflared ssh server is not supported on windows")
}
func (s *SSHServer) Start() error {
return errors.New("cloudflared ssh server is not supported on windows")
}