srs/internal/utils
shiweikang e124f9f881 Proxy: Fix nil pointer panic in BuildStreamURL and resource leak in ParseBody
1. BuildStreamURL: net.ParseIP() returns nil for non-IP hostnames
   (e.g., "example.com"), then calling nil.To4() panics. Add nil
   check before calling To4().

2. ParseBody: defer r.Close() is placed after the ReadAll error
   check. If ReadAll fails, the function returns early without
   closing r, causing a resource leak. Move defer to the top of
   the function.
2026-05-19 11:17:51 +08:00
..
utils_test.go Proxy: Fix RTC/SRT reader leak, legacy WHEP unwrap, WHEP perf guide. v8.0.1 (#4676) 2026-05-17 21:13:21 -04:00
utils.go Proxy: Fix nil pointer panic in BuildStreamURL and resource leak in ParseBody 2026-05-19 11:17:51 +08:00