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 }}) ##",
|
||||
|
||||
|
||||
"family": "{{ family }}",
|
||||
"ip": "{{ ip }}",
|
||||
"family": "{{ family }}",
|
||||
"ip": "{{ ip }}",
|
||||
"port": "{{ port }}",
|
||||
"protocol": "{{ proto }}",
|
||||
"version": "%s",
|
||||
|
@ -128,7 +128,7 @@ class ssh_server (paramiko.ServerInterface):
|
|||
##### Method to merge Jinja templates #####
|
||||
def j2format(j2tmp, valdict):
|
||||
template = jinja2.Template(j2tmp)
|
||||
return template.render(valdict)
|
||||
return template.render(valdict).replace("\n", "\r\n")
|
||||
|
||||
|
||||
##### Cleans IP addresses coming from socket library #####
|
||||
|
|
Loading…
Reference in a new issue