Support custom mask.
diff --git a/postgresql/files/pg_hba.conf b/postgresql/files/pg_hba.conf
index 4dd8b33..3a17f12 100644
--- a/postgresql/files/pg_hba.conf
+++ b/postgresql/files/pg_hba.conf
@@ -94,7 +94,7 @@
 
 {%- for client in server.clients %}
 {%- if client != '127.0.0.1' %}
-host    all             all             {{ client }}/32          md5
+host    all             all             {%- if "/" in client %}{{ client }}{%- else %}{{ client }}/32{%- endif %}          md5
 {%- endif %}
 {%- endfor %}