Skip to content

Invalid HTTP Proxy Port Handling #3803

@bwt3

Description

@bwt3

Describe the bug
When a HTTP proxy is configured to only have two characters for a port, this gets rejected by the config parser for /etc/tedge/tedge.toml
`For example the below address is rejected

pitc-zscaler-global.corp.com:80

whilst the below is accepted.
pitc-zscaler-global.corp.com:808

To Reproduce

Expected behavior
thin-edge agent can work with proxies which run on port 80

Environment (please complete the following information):

--------------- machine details ---------------------
date:           Fri  3 Oct 18:53:40 BST 2025
tedge:          
Machine:        Linux PC-Ubuntu 6.8.0-1034-azure #39~22.04.1-Ubuntu SMP Wed Aug 13 22:25:47 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Architecture:   amd64
Package Arch:   x86_64
Distribution:   Ubuntu 22.04.5 LTS

--------------- error details ------------------------
bash and curl are installed
Detected package manager: apt
Detected init system:     systemd
systemd is supported out-of-the-box so there is no need to manually install the service definitions
Using repository arch: x86_64
Using repository arch: x86_64
------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions