mirror of
https://github.com/go-i2p/go-gitlooseleaf.git
synced 2025-12-01 09:54:59 -05:00
fix some build errors
This commit is contained in:
@@ -12,10 +12,7 @@ import (
|
|||||||
|
|
||||||
// This implements the GetListener function for TLS, I2P, and Onion. Note the exemption for Unix sockets.
|
// This implements the GetListener function for TLS, I2P, and Onion. Note the exemption for Unix sockets.
|
||||||
func MultiGetListener(network, address string) (net.Listener, error) {
|
func MultiGetListener(network, address string) (net.Listener, error) {
|
||||||
EMAIL, err := os.Getenv("EMAIL")
|
EMAIL := os.Getenv("EMAIL")
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if EMAIL == "" {
|
if EMAIL == "" {
|
||||||
return nil, fmt.Errorf("EMAIL environment variable not set, TLS not possible")
|
return nil, fmt.Errorf("EMAIL environment variable not set, TLS not possible")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user