mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/dyndns: limit lookup time to 10 seconds
E.g. https doesn't work with checkip and would hang forever.
This commit is contained in:
@@ -72,7 +72,7 @@ if __name__ == '__main__':
|
||||
inputargs = parser.parse_args()
|
||||
|
||||
# use curl to fetch data, so we can optionally use "--interface"
|
||||
params = ['/usr/local/bin/curl']
|
||||
params = ['/usr/local/bin/curl', '-m', '10']
|
||||
if inputargs.interface.strip() != "":
|
||||
params.append("--interface")
|
||||
params.append(inputargs.interface)
|
||||
|
||||
Reference in New Issue
Block a user