erlyaws / yaws

Yaws webserver
https://erlyaws.github.io
BSD 3-Clause "New" or "Revised" License
1.28k stars 267 forks source link

yaws.hrl: fix default IP in sconf #425

Closed max-au closed 3 years ago

max-au commented 3 years ago

Current default causes crash in gserv. Reproducible with this code:

yaws_config:add_sconf(#sconf{port = 8888,
        docroot = "/home/max-au/wwwroot"
}),
vinoski commented 3 years ago

Thanks @max-au! I added a tiny test case, fixed a .yaws file that displays the #sconf, and rebased this to master.