forked from BSDCafe/checkmyip
Fixed indent issue
This commit is contained in:
parent
e32597426d
commit
59e88b250a
1 changed files with 3 additions and 3 deletions
|
@ -32,8 +32,8 @@ j2send = """{
|
||||||
"comment": "## Your IP Address is {{ ip }} ({{ port }}) ##",
|
"comment": "## Your IP Address is {{ ip }} ({{ port }}) ##",
|
||||||
|
|
||||||
|
|
||||||
"family": "{{ family }}",
|
"family": "{{ family }}",
|
||||||
"ip": "{{ ip }}",
|
"ip": "{{ ip }}",
|
||||||
"port": "{{ port }}",
|
"port": "{{ port }}",
|
||||||
"protocol": "{{ proto }}",
|
"protocol": "{{ proto }}",
|
||||||
"version": "%s",
|
"version": "%s",
|
||||||
|
@ -128,7 +128,7 @@ class ssh_server (paramiko.ServerInterface):
|
||||||
##### Method to merge Jinja templates #####
|
##### Method to merge Jinja templates #####
|
||||||
def j2format(j2tmp, valdict):
|
def j2format(j2tmp, valdict):
|
||||||
template = jinja2.Template(j2tmp)
|
template = jinja2.Template(j2tmp)
|
||||||
return template.render(valdict)
|
return template.render(valdict).replace("\n", "\r\n")
|
||||||
|
|
||||||
|
|
||||||
##### Cleans IP addresses coming from socket library #####
|
##### Cleans IP addresses coming from socket library #####
|
||||||
|
|
Loading…
Reference in a new issue