baloise / proxy

An minimal authenticating HTTP(S) forward proxy based on https://github.com/adamfisk/LittleProxy. You can easily add sniffing / rewriting if needed. In short: Fiddler in Java
Eclipse Public License 2.0
4 stars 3 forks source link

Setting UI options in proxy.properties can lead to an exception. #24

Closed richardroesler closed 5 months ago

richardroesler commented 5 months ago

The standard for the proxy is a SWT window UI. The alternative is an AWT window UI. This can be configured via the proxy.properties file and the options "UI = SWT" or "UI = AWT". But setting "UI=SWT" gives the folloing stacktrace:

Exception in thread "main" java.lang.IllegalArgumentException: No enum constant com.baloise.proxy.config.Config.UIType."SWT" at java.base/java.lang.Enum.valueOf(Unknown Source) at com.baloise.proxy.config.Config$UIType.valueOf(Config.java:20) at com.baloise.proxy.config.Config.getUI(Config.java:126) at com.baloise.proxy.Proxy.createUI(Proxy.java:52) at com.baloise.proxy.Proxy.(Proxy.java:32) at com.baloise.proxy.Proxy.main(Proxy.java:92)