Bug in oracle.py?

Hi,

We’ve been trying since quite some time to make the Oracle Advertisement Route work to no avail, we always ended in 401 unauthorized

We tried to debug the code and could reproduce the issue in a custom Python script, the problem seems in line 40

    'tenancy_ocid': metadata['instance']['compartmentId'],

Using this code fails, but 'tenancy_ocid': metadata['instance']['tenantId'] works

Could this be quickly corrected ?

Thanks

This was likely copied incorrectly, in most cases the compartment ocid is the same as the tenancy ocid unless the server is placed in a compartment. I have updated the code to use the tenantId, this will be included in the next release. The file can be edited at /usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/utils/oracle.py then run sudo systemctl restart pritunl to patch an existing server.