summaryrefslogtreecommitdiff
path: root/src/backend
Commit message (Collapse)AuthorAgeFilesLines
* Fix build on NetBSD (#220)HEADmainThomas Klausner2023-05-171-0/+1
| | | Closes #219
* Improve GNOME/KDE get_config() execution (#212)libproxy-0.5.0Jan-Michael Brummer2023-05-152-3/+8
| | | Only check for ignore hosts if proxy are in use.
* Remove line break in debug output (#211)Jan-Michael Brummer2023-05-151-2/+2
|
* Check for valid uri_host in ignore_ip() (#210)Jan-Michael Brummer2023-05-121-1/+6
| | | Fixes: https://github.com/libproxy/libproxy/issues/208
* Add alert function to pacrunner (#196)WJ Liu2023-05-031-0/+21
| | | | | * add alert function to pacrunners * code style and commentgoit
* Add PX_FORCE_CONFIG env (#205)Jan-Michael Brummer2023-05-031-1/+3
| | | | | | Allow users to enforce a specific config plugin using PX_FORCE_CONFIG=plugin-name Fixes: https://github.com/libproxy/libproxy/issues/174
* kde: Remove line breaks in values (#203)Jan-Michael Brummer2023-05-021-0/+1
|
* Add comment explaining KDE_PROXY_TYPE_SYSTEMJan-Michael Brummer2023-03-301-0/+3
|
* Simplify KDE no_proxy parsingJan-Michael Brummer2023-03-301-2/+1
|
* Remove unecessary removal of \r in KDE pluginJan-Michael Brummer2023-03-301-1/+0
|
* Split KDE config lines only twiceJan-Michael Brummer2023-03-301-1/+1
| | | | This ensures that further = settings would still be possible.
* Add warning in case GNOME settings arent' installedJan-Michael Brummer2023-03-301-1/+3
|
* Remove libpeas supportJan-Michael Brummer2023-03-3025-408/+208
| | | | | | As we no longer have further dependencies like glib for accessing the standard linux configurations and the other are platform specific. Let's remove peas all together. Plugins are now built-in.
* Remove d-bus supportJan-Michael Brummer2023-03-297-339/+1
| | | | | | | | | | | | | | | | | | We tried hard to make the D-Bus service a thing, but we failed. Beside all the advantages we do have problems which couldn't be solved reliable: - Dependency impact in containers (which adds D-Bus) - Environment Variables couldn't be used anymore - Two services had to be created (session/system) for users without a desktop environment - ... Alternatives like using private d-bus connections would lead to additional processes per app/lib using libproxy. Even with a timeout this looks akward. Let's remove it. ¯\_(ツ)_/¯
* Remove root as default session ownerJan-Michael Brummer2023-03-281-5/+1
|
* Update KDE config plugin available checkJan-Michael Brummer2023-03-281-2/+12
|
* Rework GNOME config plugin initializationJan-Michael Brummer2023-03-281-14/+17
| | | | Move available check to init function to exit early.
* Update replace option descriptionJan-Michael Brummer2023-03-281-1/+1
|
* Set dbus bus owner in config file (#110)Jan-Michael Brummer2023-03-272-6/+25
|
* Remove debug output (#109)Jan-Michael Brummer2023-03-271-2/+0
| | | | Co-authored-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
* Minor cleanups (#106)Jan-Michael Brummer2023-03-276-23/+4
| | | | Co-authored-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
* Add config-option to osx plugin (#104)Jan-Michael Brummer2023-03-271-0/+39
| | | | Co-authored-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
* Add missing config-option to Windows plugin (#103)Jan-Michael Brummer2023-03-271-0/+39
|
* Add common ignore handling (#99)Jan-Michael Brummer2023-03-278-11/+134
| | | | Co-authored-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
* Update D-Bus service (#101)Jan-Michael Brummer2023-03-272-21/+3
| | | | | | | - Remove property handling as it is unused - Rename query to GetProxiesFor Co-authored-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
* Fix coverity findings (#96)Jan-Michael Brummer2023-03-271-2/+3
| | | | Co-authored-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
* Handle invalid GNOME configuration (#89)Jan-Michael Brummer2023-03-271-1/+12
| | | | | | Fixes: https://github.com/janbrummer/libproxy2/issues/88 Co-authored-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
* Add inactivity timeout to d-bus service (#86)Jan-Michael Brummer2023-03-271-28/+51
| | | | | | | Switch to GApplication and set an inactivity timer so that the service will be cancelled after a timeout period of 60s. Co-authored-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
* Add a duplicate check for proxy arrays (#87)Jan-Michael Brummer2023-03-278-20/+36
| | | | Co-authored-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
* Add file monitor support (#81)Jan-Michael Brummer2023-03-273-35/+84
|
* Add dbus system service (#83)Jan-Michael Brummer2023-03-275-44/+63
| | | | | | | | | In cases where we are switchting users which are not allowed or are using a non graphical shell dbus user session will not work. User session are bound to xauthority and display environment variables. In those cases fallback to a system session running as specified user (default=root). Fixes: https://github.com/janbrummer/libproxy2/issues/79 Co-authored-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
* Fix return value for invalid pac file (#82)Jan-Michael Brummer2023-03-271-1/+1
| | | | | | | Return direct:// in case there is an issue with pac/wpad instead of returning config url. Fixes: https://github.com/janbrummer/libproxy2/issues/80
* Improve non http proxy tests (#72)Jan-Michael Brummer2023-03-271-11/+5
|
* Various cleanups (#69)Jan-Michael Brummer2023-03-276-33/+6
|
* Add flag to toggle curl integration (#65)Jan-Michael Brummer2023-03-271-0/+8
| | | | | | | In order to fix a possible build cycle between libproxy and curl add a toggle to switch off curl if necessary. Fixes: https://github.com/janbrummer/libproxy2/issues/57
* Add config-option property (#68)Jan-Michael Brummer2023-03-277-10/+259
| | | | | | In order to reduce the number of environment manipulation for testing purpose, introduce a new config-option property to set config files for tests.
* Make use of G_DEFINE_BOXED_TYPE (#60)Jan-Michael Brummer2023-03-272-3/+2
|
* Make use of curl only (#54)Jan-Michael Brummer2023-03-2713-448/+42
| | | | Simplify libproxy and allow only one download lib: curl.
* Improve debug output (#53)Jan-Michael Brummer2023-03-272-6/+5
|
* Add D-Bus service files (#38)Jan-Michael Brummer2023-03-275-6/+48
|
* Code cleanup (#51)Jan-Michael Brummer2023-03-2721-37/+29
| | | | Update header and minor cleanup
* Remove temporary string variable (#49)Jan-Michael Brummer2023-03-271-2/+1
| | | | This can be safely replaced by duk_push_lstring.
* Cleanup config plugins (#50)Jan-Michael Brummer2023-03-2725-64/+224
|
* Simplify get_config API (#47)Jan-Michael Brummer2023-03-278-57/+37
| | | | | Remove return value as it was unused, as well as GError. In case an error occures we can dump it into debug. There is no user benefit.
* Remove load check in pxmanager (#48)Jan-Michael Brummer2023-03-271-7/+5
| | | | This check does nothing and can be removed.
* Handle network available status (#46)Jan-Michael Brummer2023-03-271-4/+6
|
* Set curl options to fix recursive calls (#45)Jan-Michael Brummer2023-03-271-0/+9
| | | | | Set various curl options to ensure we are not calling back to libproxy and also improve timeout handling and identification.
* Fix PAC download error (#44)Jan-Michael Brummer2023-03-271-2/+5
| | | | | In case PAC file cannot be download, clear pac_url and treat as a non pac case.
* Improve debug output (#43)Jan-Michael Brummer2023-03-277-12/+38
| | | | | Add enabling debug output using PX_DEBUG=1 and align debug output messages.
* Small fixes (#40)Jan-Michael Brummer2023-03-273-10/+12
| | | | | | | | | | | * Throw an error for dbus errors * Move curl setup to download function Move curl initialization to download function to workaround a dbus cycle error. * Move to debug output and fix pac data freeing