本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
494B

  1. // +build windows
  2. // Copyright 2019 The Gitea Authors. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. package ssh
  6. import (
  7. "code.gitea.io/gitea/modules/log"
  8. "github.com/gliderlabs/ssh"
  9. )
  10. func listen(server *ssh.Server) {
  11. err := server.ListenAndServe()
  12. if err != nil {
  13. log.Critical("Failed to serve with builtin SSH server. %s", err)
  14. }
  15. }
  16. // Unused does nothing on windows
  17. func Unused() {
  18. // Do nothing
  19. }
上海开阖软件有限公司 沪ICP备12045867号-1