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.

web_windows.go 464B

12345678910111213141516171819
  1. // +build windows
  2. // Copyright 2016 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 cmd
  6. import (
  7. "net/http"
  8. )
  9. func runHTTP(listenAddr string, m http.Handler) error {
  10. return http.ListenAndServe(listenAddr, m)
  11. }
  12. func runHTTPS(listenAddr, certFile, keyFile string, m http.Handler) error {
  13. return http.ListenAndServeTLS(listenAddr, certFile, keyFile, m)
  14. }