mirror of https://gitlab.com/bashrc2/epicyon
Comment
parent
d2d31d12a6
commit
517740bbd6
|
@ -21,6 +21,7 @@ def removeDomainPort(domain: str) -> str:
|
||||||
|
|
||||||
def getPortFromDomain(domain: str) -> int:
|
def getPortFromDomain(domain: str) -> int:
|
||||||
"""If the domain has a port number appended then return it
|
"""If the domain has a port number appended then return it
|
||||||
|
eg. mydomain.com:80 returns 80
|
||||||
"""
|
"""
|
||||||
if ':' in domain:
|
if ':' in domain:
|
||||||
if domain.startswith('did:'):
|
if domain.startswith('did:'):
|
||||||
|
|
Loading…
Reference in New Issue