0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
This commit is contained in:
Matthew Holt 2015-05-20 20:50:19 -06:00
parent 26bb17337e
commit ea9607302a

View file

@ -102,7 +102,7 @@ func main() {
// Warn if ulimit is too low for production sites // Warn if ulimit is too low for production sites
if (runtime.GOOS == "linux" || runtime.GOOS == "darwin") && if (runtime.GOOS == "linux" || runtime.GOOS == "darwin") &&
addr.IP.IsLoopback() && !checkedFdLimit { !addr.IP.IsLoopback() && !checkedFdLimit {
out, err := exec.Command("ulimit", "-n").Output() out, err := exec.Command("ulimit", "-n").Output()
if err == nil { if err == nil {
// Note that an error here need not be reported // Note that an error here need not be reported