agolyud / VPN_Outline_TV

39 stars 2 forks source link

Feature request: Select DNS servers #21

Open tholden opened 2 weeks ago

tholden commented 2 weeks ago

It would be helpful to be able to select DNS servers.

agolyud commented 2 weeks ago

I will make the next update. There is still a lot of basic work to do

agolyud commented 2 weeks ago

@khoben Hi. If you have time. Maybe we can implement it together?

tholden commented 2 weeks ago

The DNS look ups are server side right (i.e. through the VPN)? I had a look at the Android help for VpnService.Builder but it wasn't particularly clear.

khoben commented 1 week ago

@khoben Hi. If you have time. Maybe we can implement it together?

Hi, Its already selecting random (?) DNS from the list. Just need to pass the specified DNS via parameters here. Also from here white/black list for applications that will use VPN can be passed (addAllowedApplication, addDisallowedApplication).

I suggest making a settings button at the top and on the settings screen making DNS input and allowed/disallowed app packages selection and other related settings:

Main screen sample UI ![image](https://github.com/user-attachments/assets/213ab299-0fbf-475d-8538-dde14082c4d0)
Settings screen sample UI ![image](https://github.com/user-attachments/assets/51aebbe8-8016-4904-9936-26c0d9e63c72)

I suppose it's worth starting with implementing settings screen UI and then the other settings features (apps list, dns, autostart). I'll look into this next week.

agolyud commented 1 week ago

@khoben let me do the UI. And we create a branch and implement everything else in it.

khoben commented 1 week ago

@khoben let me do the UI. And we create a branch and implement everything else in it.

👍