The error would look like:
Cloning into '/home/amov/PX4-Autopilot/boards/modalai/voxl2/libfc-sensor-api'...
fatal: unable to access 'https://gitlab.com/voxl-public/voxl-sdk/core-libs/libfc-sensor-api.git/': SOCKS4 connection to 2606:4700:90:0:f22e:fbec:5bed:a9b9 not supported
Try
$ echo $http_proxy
http://127.0.0.1:7890/
Configure git for proxy
$ git config --global http.proxy sockes5://127.0.0.1:7890
$ git config --global https.proxy sockes5://127.0.0.1:7890
If password is used
git config --global http.proxy socks5://username:password@proxyserver:port
git config --global https.proxy socks5://username:password@proxyserver:port
Now cd into the directory and retry
git submodule update --init --recursive