It was discovered that GLib's GSocketClient, since GLib 2.60, will sporadically ignore its configured proxy settings and improperly connect directly to the target server, bypassing the configured proxy server: https://gitlab.gnome.org/GNOME/glib/issues/1989